From 883f63300c770288f1d977a22616ba0c2828bada Mon Sep 17 00:00:00 2001 From: long <452591453@qq.com> Date: Sat, 31 Oct 2026 11:56:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(chat):=20=E4=BF=AE=E5=A4=8D=E8=81=8A?= =?UTF-8?q?=E5=A4=A9=E9=A1=B5=20const=20=E5=8F=98=E9=87=8F=E9=87=8D?= =?UTF-8?q?=E6=96=B0=E8=B5=8B=E5=80=BC=E5=AF=BC=E8=87=B4=E7=9C=9F=E6=9C=BA?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E7=BC=96=E8=AF=91=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit userID 不含 patient 前缀时要补前缀,需要重新赋值,改为 let。 模拟器只在执行到这行时才报错;真机调试打包时 SWC 直接拒绝整个小程序。 --- TUICallKit-Vue3/TUIKit/pages/chat/chat.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TUICallKit-Vue3/TUIKit/pages/chat/chat.vue b/TUICallKit-Vue3/TUIKit/pages/chat/chat.vue index 3e8e03d5d..d9dfa003a 100644 --- a/TUICallKit-Vue3/TUIKit/pages/chat/chat.vue +++ b/TUICallKit-Vue3/TUIKit/pages/chat/chat.vue @@ -610,7 +610,7 @@ const { proxy } = getCurrentInstance() patientLeaveNotified = false; console.log('进入onMounted:', options); const app = getApp(); - const userID = options.userID|| app.globalData.userID; + let userID = options.userID|| app.globalData.userID; if(!userID.includes('patient')){ userID='patient_'+userID }