门店经营
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}`