From 98fb4b8248ace7bd20f48375a27d9328e561732c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Tue, 25 Aug 2026 17:45:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(staffchat):=20=E5=9B=9Elist=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E9=87=8D=E8=BD=BD=E4=BC=9A=E8=AF=9D=E5=88=97=E8=A1=A8?= =?UTF-8?q?(=E4=BF=AE=E5=A4=8Dsearch=E6=9C=9F=E9=97=B4=E5=88=87tab?= =?UTF-8?q?=E5=90=8E=E5=88=97=E8=A1=A8=E4=B8=8E=E9=AB=98=E4=BA=AE=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E7=9F=9B=E7=9B=BE=E7=9A=84=E6=AE=8B=E7=95=99=E8=BE=B9?= =?UTF-8?q?=E7=BC=98)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- yunkes/src/components/staffchat/SessionPane.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/yunkes/src/components/staffchat/SessionPane.vue b/yunkes/src/components/staffchat/SessionPane.vue index 0fb5303..513bf97 100644 --- a/yunkes/src/components/staffchat/SessionPane.vue +++ b/yunkes/src/components/staffchat/SessionPane.vue @@ -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) => {