feat:跟新livekit房间创建
This commit is contained in:
@@ -112,21 +112,19 @@ function requestNotificationPermission() {
|
||||
onMounted(async () => {
|
||||
try {
|
||||
loginView.value = true
|
||||
const arr = await getInfo("self");
|
||||
console.log(arr,'身份信息')
|
||||
const res = await getInfo("self");
|
||||
showLogin.value = false;
|
||||
router.push({
|
||||
if (res.meta.code === 401) {
|
||||
showLogin.value = true;
|
||||
} else {
|
||||
router.push({
|
||||
path: '/whiteboard',
|
||||
query: { room_uid: 'nxst-ok4j' }
|
||||
})
|
||||
})
|
||||
}
|
||||
loginView.value = false
|
||||
} catch (err) {
|
||||
if (err.code === 401) {
|
||||
showLogin.value = true;
|
||||
} else {
|
||||
showLogin.value = false;
|
||||
console.warn("⚠️ 用户信息校验失败:", err);
|
||||
}
|
||||
} catch (err) {
|
||||
console.warn("⚠️ 用户信息校验失败:", err);
|
||||
} finally {
|
||||
loginView.value = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user