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() {