优化客服会话筛选

This commit is contained in:
yml
2026-06-18 01:08:54 +08:00
parent 272b2cb71e
commit 7dc7368367
8 changed files with 567 additions and 98 deletions
@@ -39,12 +39,16 @@ const returnTarget = computed(() => {
const from = firstQueryValue(route.query.from)
const chatID = firstQueryValue(route.query.chat_id)
const chatFilter = firstQueryValue(route.query.chat_filter)
const chatStage = firstQueryValue(route.query.chat_stage)
const chatKeyword = firstQueryValue(route.query.chat_keyword)
if (from === 'chat' && chatID) {
return {
path: adminPath('chats'),
query: {
chat_id: chatID,
...(chatFilter ? { chat_filter: chatFilter } : {}),
...(chatStage ? { chat_stage: chatStage } : {}),
...(chatKeyword ? { chat_keyword: chatKeyword } : {}),
},
}
}