修复web和微信小程序的通话
This commit is contained in:
@@ -450,7 +450,7 @@ watch(
|
||||
currentFlvUrl = newFlvUrl
|
||||
}
|
||||
},
|
||||
{ immediate: true }
|
||||
{ immediate: true, deep: true }
|
||||
)
|
||||
|
||||
// 组件卸载时清理 FLV 播放器
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user