From 536c77ff087784c98127fa4cfe4095a5879b49a8 Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Wed, 16 Oct 2024 19:28:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8E=E5=85=B6=E4=BB=96=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=A3=8E=E6=A0=BC=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/locales/en-US.ts | 6 +-- .../setting/components/change-home-index.vue | 49 ++++++++++++++----- 2 files changed, 41 insertions(+), 14 deletions(-) diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 987a77e1..647b95e4 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -1794,10 +1794,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..a1d9d000 100644 --- a/src/views/system/setting/components/change-home-index.vue +++ b/src/views/system/setting/components/change-home-index.vue @@ -51,6 +51,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,18 +84,39 @@ onMounted(() => {