修复web和微信小程序的通话

This commit is contained in:
2025-12-16 16:42:46 +08:00
parent 18b9c8b3a5
commit a05f8f29c6
2 changed files with 3 additions and 3 deletions

View File

@@ -450,7 +450,7 @@ watch(
currentFlvUrl = newFlvUrl
}
},
{ immediate: true }
{ immediate: true, deep: true }
)
// 组件卸载时清理 FLV 播放器

View File

@@ -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)