From e9d0d462443354ae9c93921262fdbf36b273164f Mon Sep 17 00:00:00 2001
From: JiaJun <2394389886@qq.com>
Date: Wed, 15 Apr 2026 09:20:02 +0800
Subject: [PATCH] =?UTF-8?q?fix:=E8=A1=A5=E5=85=85=E5=A4=9A=E8=AF=AD?=
=?UTF-8?q?=E8=A8=80=E9=81=97=E6=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.tsx | 3 +--
src/features/goods/GoodsCategoryList.tsx | 6 +++---
src/features/goods/GoodsRedeemModal.tsx | 6 +++---
src/features/goods/useGoodsCatalog.ts | 12 ++++--------
src/types/index.ts | 3 +--
5 files changed, 12 insertions(+), 18 deletions(-)
diff --git a/src/App.tsx b/src/App.tsx
index 1348078..47c853d 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -30,8 +30,7 @@ function App() {
if (previousLanguage && previousLanguage !== normalizedLanguage) {
await queryClient.cancelQueries()
- await queryClient.invalidateQueries()
- await queryClient.refetchQueries({type: 'active'})
+ await queryClient.invalidateQueries({refetchType: 'active'})
}
previousLanguageRef.current = normalizedLanguage
diff --git a/src/features/goods/GoodsCategoryList.tsx b/src/features/goods/GoodsCategoryList.tsx
index 56aafe2..e26adad 100644
--- a/src/features/goods/GoodsCategoryList.tsx
+++ b/src/features/goods/GoodsCategoryList.tsx
@@ -89,7 +89,7 @@ export function GoodsCategoryList({
className="flex h-[36px] w-[36px] items-center justify-center rounded-[12px] bg-[#FA6A00]/15 text-[#FE9F00]">
-
{category.name}
+ {t(HOME_CATEGORY_META_MAP[category.id].nameKey)}
{showMore && onMoreClick ? (