地址栏显示token的不具合 修改
This commit is contained in:
+2
-3
@@ -26,9 +26,8 @@ async function checktoken(url: string) {
|
|||||||
await obtainUserInfo(authorizeToken).then(response => {
|
await obtainUserInfo(authorizeToken).then(response => {
|
||||||
setUser(response.data)
|
setUser(response.data)
|
||||||
})
|
})
|
||||||
router.push({
|
let base_url = url.split("?token=")[0]
|
||||||
path: '/home',
|
window.open(base_url, "_self")
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
checktoken(url)
|
checktoken(url)
|
||||||
|
|||||||
+1
-1
@@ -78,7 +78,7 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
{
|
{
|
||||||
path: "/login",
|
path: "/login",
|
||||||
component: () => import('../components/login/login.vue')
|
component: () => import('../components/login/login.vue')
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user