From a05f8f29c6503baf5ffb661f42e13c0576b83f7f Mon Sep 17 00:00:00 2001 From: liqi Date: Tue, 16 Dec 2025 16:42:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dweb=E5=92=8C=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=9A=84=E9=80=9A=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/call/CallWindow.vue | 2 +- src/views/chat/ChatView.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/call/CallWindow.vue b/src/components/call/CallWindow.vue index 2eb8991..b35a634 100644 --- a/src/components/call/CallWindow.vue +++ b/src/components/call/CallWindow.vue @@ -450,7 +450,7 @@ watch( currentFlvUrl = newFlvUrl } }, - { immediate: true } + { immediate: true, deep: true } ) // 组件卸载时清理 FLV 播放器 diff --git a/src/views/chat/ChatView.vue b/src/views/chat/ChatView.vue index 77597e7..f2e7d87 100644 --- a/src/views/chat/ChatView.vue +++ b/src/views/chat/ChatView.vue @@ -2308,8 +2308,8 @@ watch(currentTab, (newTab) => { onMounted(async () => { // 每次页面加载/刷新时都验证 token 并获取最新用户信息 - const isValid = await authStore.checkAuth() - if (!isValid) { router.push('/login'); return } + const isValid = await authStore.checkAuth() + if (!isValid) { router.push('/login'); return } if (authStore.user) { await wsManager.connect(authStore.user.id)