fix(staffchat): 回list模式重载会话列表(修复search期间切tab后列表与高亮标签矛盾的残留边缘)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
浅念
2026-08-25 17:45:55 +08:00
parent 026381f6e6
commit 98fb4b8248
@@ -65,10 +65,14 @@ watch(friendTab, () => {
if (mode.value === 'list') load()
})
/** 切模式清关键词与旧结果,避免 list 过滤词被误当搜索词。 */
/** 切模式清关键词与旧结果,避免 list 过滤词被误当搜索词。
回 list 时重载:search 期间切过好友/已删 tab 的话,列表还是旧 tab
的数据,而重新点高亮 tab 是 no-op(watch 同值不触发)——会显示与
高亮标签矛盾的会话列表。 */
watch(mode, () => {
keyword.value = ''
clearSearch()
if (mode.value === 'list') load()
})
/** search 模式清空关键词 → 回到未搜索态(不残留上次聚合结果)。 */
watch(keyword, (k) => {