feat(ui): 左侧菜单改分组式(微信管理/WhatsApp管理+下拉子菜单,对齐云客布局)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user