diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 4f03752d..c4ed59a6 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -1782,10 +1782,10 @@ export default { reset: "System Reset", resetInstruction: "A system reset will erase all data in the current system, please proceed with caution!!!!", resetTipContent: 'Are you sure you want to clear all data from the current system and insist on continuing?', - homeInstruction:'Set the system home page', - home: 'System home page', + homeInstruction:'Set the home page', + home: 'Home Page', homeTip:'Do you want to submit the current interface as the system interface?', - homeSet:'System home page Settings', + homeSet:'Home Page Settings', }, role:{ allScopeOptions:'All data permissions', diff --git a/src/views/system/setting/components/change-home-index.vue b/src/views/system/setting/components/change-home-index.vue index cf11ab29..a260c947 100644 --- a/src/views/system/setting/components/change-home-index.vue +++ b/src/views/system/setting/components/change-home-index.vue @@ -39,6 +39,7 @@ function fnSave() { .then(res => { if (res.code === RESULT_CODE_SUCCESS) { message.success(t('views.system.setting.saveSuccess'), 3); + fnEdit(false); } else { message.error(res.msg, 3); } @@ -51,6 +52,12 @@ function fnSave() { }); } +/**进入可编辑 */ +function fnEdit(v: boolean) { + state.edite = v; + state.open = v; +} + onMounted(() => { listMenu(toRaw({ status: 1 })).then(res => { if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) { @@ -78,25 +85,46 @@ onMounted(() => {