diff --git a/JC-Salon-Frontend/src/views/admin/SystemSettingsView.vue b/JC-Salon-Frontend/src/views/admin/SystemSettingsView.vue index 835d954d..af2f9dab 100644 --- a/JC-Salon-Frontend/src/views/admin/SystemSettingsView.vue +++ b/JC-Salon-Frontend/src/views/admin/SystemSettingsView.vue @@ -32,7 +32,7 @@
-
+

账号与登录

@@ -87,7 +87,7 @@
-
+

门店经营

SHOP
@@ -782,6 +782,8 @@ const toggleProbeDetail = (service: string, operation: string) => { } const activeGroup = ref('') +/** activeRuntimeGroup switches the runtime groups so only one is rendered at a time. */ +const activeRuntimeGroup = ref('settings-group-account') /** activeServiceGroup switches the five service groups so only one is rendered at a time. */ const activeServiceGroup = ref('settings-group-probe') const groupNavItems = computed>(() => { @@ -836,12 +838,21 @@ const handleGroupNavClick = (id: string) => { activeGroup.value = id return } + if (activeSection.value === 'runtime') { + activeRuntimeGroup.value = id + activeGroup.value = id + return + } scrollToGroup(id) } watch(activeSection, () => { - activeGroup.value = activeSection.value === 'services' - ? activeServiceGroup.value - : groupNavItems.value[0]?.id || '' + if (activeSection.value === 'services') { + activeGroup.value = activeServiceGroup.value + } else if (activeSection.value === 'runtime') { + activeGroup.value = activeRuntimeGroup.value + } else { + activeGroup.value = groupNavItems.value[0]?.id || '' + } }, { immediate: true }) const runProbe = async (service: string, operation: string) => { const key = `${service}:${operation}`