feat(ui): 左侧菜单改分组式(微信管理/WhatsApp管理+下拉子菜单,对齐云客布局)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
浅念
2026-08-15 12:09:55 +08:00
parent 02f95af279
commit 9b21584e9a
5 changed files with 130 additions and 43 deletions
+5 -1
View File
@@ -47,7 +47,11 @@ const org = useOrgStore()
// activeTab 跟随全局 channelStore(StaffList viewCustomers 先 setChannel 再 push /customers)。
// channel 总是具体值('wechat' | 'whatsapp'),不会是 'all' —— CustomerList 强制按 tab 选 channel,
// loadTab 永不传 'all'(getCustomers 的 'all'→undefined 分支不会被触发)。
const activeTab = ref<TabKey>(channelStore.channel === 'whatsapp' ? 'whatsapp' : 'wechat')
const activeTab = ref<TabKey>(
route.query.channel === 'whatsapp' || (!route.query.channel && channelStore.channel === 'whatsapp')
? 'whatsapp'
: 'wechat',
)
const tabState = reactive<Record<TabKey, TabState>>({
wechat: freshTabState(),
whatsapp: freshTabState(),