From 519ebc26c89e95da7089e1b91cd1cb5231a0f873 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Mon, 24 Nov 2025 09:58:18 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=B3=BB=E7=BB=9F=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/locales/en/common.json | 1 + public/locales/zh/common.json | 3 ++- src/views/App.jsx | 2 ++ src/views/ReloadUpdate.jsx | 7 +++++-- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/public/locales/en/common.json b/public/locales/en/common.json index e13ab18..45db10e 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -113,6 +113,7 @@ "Paid": "Paid" }, "Compare": "Compare", + "SystemUpdate": "System Update", "review": { "ReviewLink": "Review Link", "DatePosted": "Date Posted", diff --git a/public/locales/zh/common.json b/public/locales/zh/common.json index dabcc64..2004506 100644 --- a/public/locales/zh/common.json +++ b/public/locales/zh/common.json @@ -111,5 +111,6 @@ "Finance_Dept_arrproved": "财务已审核", "Paid": "已打款" }, - "Compare": "对比" + "Compare": "对比", + "SystemUpdate": "系统更新" } diff --git a/src/views/App.jsx b/src/views/App.jsx index 7a7449a..d9b443d 100644 --- a/src/views/App.jsx +++ b/src/views/App.jsx @@ -136,6 +136,8 @@ function App() { isPermitted(PERM_ACCOUNT_MANAGEMENT) ? { label: {t('account:accountList')}, key: '3' } : null, isPermitted(PERM_ROLE_NEW) ? { label: {t('account:roleList')}, key: '4' } : null, { type: 'divider' }, + { label: , key: '5' }, + { type: 'divider' }, { label: {t('Logout')}, key: '99' }, ] ], diff --git a/src/views/ReloadUpdate.jsx b/src/views/ReloadUpdate.jsx index ac45d9d..9d71f8a 100644 --- a/src/views/ReloadUpdate.jsx +++ b/src/views/ReloadUpdate.jsx @@ -1,14 +1,17 @@ import { Button } from 'antd'; import { clearAllCaches } from '@/utils/commons'; +import { useTranslation } from 'react-i18next' const ReloadUpdate = ({ ...props }) => { + const { t } = useTranslation() + const forceReload = async () => { await clearAllCaches(); window.location.reload(true); }; return ( - ); };