短信服务
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}`