diff --git a/JC-Salon-Frontend/src/views/admin/SystemSettingsView.vue b/JC-Salon-Frontend/src/views/admin/SystemSettingsView.vue index 07384f3f..726f376b 100644 --- a/JC-Salon-Frontend/src/views/admin/SystemSettingsView.vue +++ b/JC-Salon-Frontend/src/views/admin/SystemSettingsView.vue @@ -23,7 +23,7 @@ :key="item.id" type="button" :class="['settings-subnav__item', { 'is-active': activeGroup === item.id }]" - @click="scrollToGroup(item.id)" + @click="handleGroupNavClick(item.id)" > {{ item.label }} {{ item.badge }} @@ -115,7 +115,7 @@
-
+

接入诊断

TEST
@@ -174,7 +174,7 @@
-
+

地图服务

安全接入
@@ -226,7 +226,7 @@
-
+

微信内容审核

安全回调
@@ -388,7 +388,7 @@
-
+

对象存储读取顺序

FILE
@@ -419,7 +419,7 @@
-
+

短信服务

SMS
@@ -782,6 +782,8 @@ const toggleProbeDetail = (service: string, operation: string) => { } const activeGroup = ref('') +/** activeServiceGroup switches the five service groups so only one is rendered at a time. */ +const activeServiceGroup = ref('settings-group-probe') const groupNavItems = computed>(() => { if (activeSection.value === 'runtime') { return [{ id: 'settings-group-account', label: '账号与登录' }, { id: 'settings-group-shop', label: '门店经营' }] @@ -828,8 +830,18 @@ const scrollToGroup = (id: string) => { element.classList.add('is-located') window.setTimeout(() => element.classList.remove('is-located'), 1500) } +const handleGroupNavClick = (id: string) => { + if (activeSection.value === 'services') { + activeServiceGroup.value = id + activeGroup.value = id + return + } + scrollToGroup(id) +} watch(activeSection, () => { - activeGroup.value = groupNavItems.value[0]?.id || '' + activeGroup.value = activeSection.value === 'services' + ? activeServiceGroup.value + : groupNavItems.value[0]?.id || '' }, { immediate: true }) const runProbe = async (service: string, operation: string) => { const key = `${service}:${operation}`