feat:跟新livekit房间创建

This commit is contained in:
leilei
2025-09-26 17:58:42 +08:00
parent 121fc5ea19
commit af994f88de
15 changed files with 1052 additions and 41 deletions

View File

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