From fa4be253f7bca9d25d9f079116547d644db90c65 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 8 May 2024 16:09:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=B3=BB=E7=BB=9F=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E6=93=8D=E4=BD=9C=E5=A4=9A=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/locales/en-US.ts | 3 +++ src/i18n/locales/zh-CN.ts | 3 +++ .../system/setting/components/system-reset.vue | 17 +++++++++++------ src/views/system/setting/index.vue | 4 +++- 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 268f4411..84530509 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -1520,6 +1520,9 @@ export default { i18nOpen: "Display Switch", i18nDefault: "Default Languages", i18nInstruction: 'Whether to display the internationalization switch and set the system default language', + reset: "System Reset", + resetInstruction: "System reset will destroy all data in the current system, please operate with caution.", + resetTipContent: 'System reset will destroy all data in the current system. Are you sure you want to continue?', }, role:{ allScopeOptions:'All data permissions', diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 12a4c172..e7ca6827 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -1520,6 +1520,9 @@ export default { i18nOpen: "显示切换", i18nDefault: "默认语言", i18nInstruction: '是否显示国际化切换,设置系统默认语言', + reset: "系统重置", + resetInstruction: "系统重置将会销毁当前系统内所有数据,请谨慎操作。", + resetTipContent: '系统重置将会销毁当前系统内所有数据,确认要继续吗?', }, role:{ allScopeOptions:'全部数据权限', diff --git a/src/views/system/setting/components/system-reset.vue b/src/views/system/setting/components/system-reset.vue index cc63192d..8b544f69 100644 --- a/src/views/system/setting/components/system-reset.vue +++ b/src/views/system/setting/components/system-reset.vue @@ -44,7 +44,7 @@ function fnModalOk() { .then(res => { state.confirmLoading = false; if (res.code === RESULT_CODE_SUCCESS) { - fnModalCancel() + fnModalCancel(); lockedStore.fnLock('reload'); } else { message.error(res.msg, 3); @@ -69,23 +69,28 @@ function fnModalCancel() {