From a5597938f535551f36980a87c9b3989a4babcf28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=BA=A2=E4=B8=BD?= <1181930680@qq.com> Date: Wed, 24 Jul 2024 10:49:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=B3=BB=E7=BB=9F=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/setting/configWeb/BasicSetting.vue | 158 ++++++++++--------- src/views/setting/configWeb/index.vue | 9 +- 2 files changed, 93 insertions(+), 74 deletions(-) diff --git a/src/views/setting/configWeb/BasicSetting.vue b/src/views/setting/configWeb/BasicSetting.vue index a4d8b77..7cb990c 100644 --- a/src/views/setting/configWeb/BasicSetting.vue +++ b/src/views/setting/configWeb/BasicSetting.vue @@ -1,73 +1,75 @@ + diff --git a/src/views/setting/configWeb/index.vue b/src/views/setting/configWeb/index.vue index bcea7fe..67ae94b 100644 --- a/src/views/setting/configWeb/index.vue +++ b/src/views/setting/configWeb/index.vue @@ -3,7 +3,7 @@ - + @@ -17,7 +17,7 @@ const activeName = ref(); const tabData=ref([]) - const getTabData = async () => { + const getTabData = async (name) => { let res = await getWebInfo(); res.map(item=>{ item.dataList.map(sub=>{ @@ -54,7 +54,10 @@ }) }) tabData.value = res - activeName.value=tabData.value[0].configName + activeName.value=name?name:tabData.value[0].configName + } + const getReshTabData = (name)=>{ + getTabData(name) } onMounted(()=>{ getTabData()