feat:更新协同合作
This commit is contained in:
@@ -82,9 +82,12 @@ function handleLogin() {
|
||||
.then(async (res) => {
|
||||
const userInfo = JSON.parse(localStorage.getItem('userData'))
|
||||
router.push({
|
||||
path: '/whiteboard',
|
||||
query: { room_uid: 'nxst-ok4j' }
|
||||
path: '/coordinate',
|
||||
})
|
||||
// router.push({
|
||||
// path: '/whiteboard',
|
||||
// query: { room_uid: 'nxst-ok4j' }
|
||||
// })
|
||||
|
||||
})
|
||||
.catch((e) => {
|
||||
@@ -117,10 +120,13 @@ onMounted(async () => {
|
||||
if (res.meta.code === 401) {
|
||||
showLogin.value = true;
|
||||
} else {
|
||||
router.push({
|
||||
path: '/whiteboard',
|
||||
query: { room_uid: 'nxst-ok4j' }
|
||||
})
|
||||
// router.push({
|
||||
// path: '/whiteboard',
|
||||
// query: { room_uid: 'nxst-ok4j' }
|
||||
// })
|
||||
router.push({
|
||||
path: '/coordinate',
|
||||
})
|
||||
}
|
||||
loginView.value = false
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user