From fb27f94deb516ca2217e8a62170a3fe450cffcc1 Mon Sep 17 00:00:00 2001 From: xiaowang <2161656029@qq.com> Date: Sat, 7 Nov 2026 23:49:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E5=8F=82=E6=95=B0=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=88=86=E7=BB=84=E5=88=87=E6=8D=A2=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 运行参数下账号与登录、门店经营两组由纵向堆叠改为按钮切换,默认账号与登录;切换仅更新选中态与渲染内容,字段值均在页面级状态中,未保存内容不丢失。 --- .../src/views/admin/SystemSettingsView.vue | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) 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}`