From 4d18a0e7558c1352d5f734cdcd4f247aa9aea7aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Sat, 8 Aug 2026 16:17:53 +0800 Subject: [PATCH] =?UTF-8?q?docs(plan):=20=E2=91=A3=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=9C=AA=E7=94=A8=20chatChannel(=E9=81=BF=E5=85=8D=20noUnusedL?= =?UTF-8?q?ocals,WA=20=E6=97=B6=E5=86=8D=E5=8A=A0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- .../plans/2026-08-08-yunke-calllist-cell-click.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/superpowers/plans/2026-08-08-yunke-calllist-cell-click.md b/docs/superpowers/plans/2026-08-08-yunke-calllist-cell-click.md index 9067823..f86c713 100644 --- a/docs/superpowers/plans/2026-08-08-yunke-calllist-cell-click.md +++ b/docs/superpowers/plans/2026-08-08-yunke-calllist-cell-click.md @@ -42,13 +42,8 @@ import { useRouter } from 'vue-router' ``` `const router = useRouter()`(放 script 顶部状态区,如 `const drawerOpen = ref(false)` 之前)。 -加 helper + handlers(放 `openDrawer` 附近): +加 handlers(放 `openDrawer` 附近): ```typescript -/** 通话类型 → 聊天渠道(voice_call→wechat, wa_voice_call→whatsapp, phone_call→无)。 */ -function chatChannel(ch: CallChannel): 'wechat' | 'whatsapp' | null { - return ch === 'voice_call' ? 'wechat' : ch === 'wa_voice_call' ? 'whatsapp' : null -} - /** 客户昵称 → 该员工×客户 1:1 聊天(复用 Phase B 导航)。 */ function viewCallCustomer(row: PhoneCall): void { const owner = cell(row, 'weChatId') @@ -67,7 +62,7 @@ function viewCallStaff(row: PhoneCall): void { router.push({ name: 'chat', params: { channel: 'wechat', ownerId: String(owner) } }) } ``` -> `CallChannel` 已在 import(`import type { CallChannel, PhoneCall }`)。`chatChannel` 本 task 只用于 voice_call,但保留 WA 映射供后续。 +> 本 plan 仅微信语音(voice_call→`'wechat'` 硬编码)。WA 映射 `chatChannel()`(voice_call→wechat, wa_voice_call→whatsapp)留待 WA tab 实现时再加(避免 `noUnusedLocals` 死代码)。`PhoneCall` 已在 import。 - [ ] **Step 2: voice_call 模板 3 处单元格包 link button**