diff --git a/src/main.ts b/src/main.ts index a83fd3f..2613f33 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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) diff --git a/src/router/index.ts b/src/router/index.ts index dd6c4e1..2e5cfba 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -78,7 +78,7 @@ const routes: Array = [ { path: "/login", component: () => import('../components/login/login.vue') - }, + } ]