地址栏显示token的不具合 修改

This commit is contained in:
simple321vip
2022-08-26 00:25:34 +08:00
parent 714cfd5310
commit e9c8cb9d33
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -26,9 +26,8 @@ async function checktoken(url: string) {
await obtainUserInfo(authorizeToken).then(response => {
setUser(response.data)
})
router.push({
path: '/home',
})
let base_url = url.split("?token=")[0]
window.open(base_url, "_self")
}
}
checktoken(url)
+1 -1
View File
@@ -78,7 +78,7 @@ const routes: Array<RouteRecordRaw> = [
{
path: "/login",
component: () => import('../components/login/login.vue')
},
}
]