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 ( - ); };