From e9c8cb9d331e8928d2a23b5e760a706982857fe2 Mon Sep 17 00:00:00 2001 From: simple321vip Date: Fri, 26 Aug 2022 00:25:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9D=80=E6=A0=8F=E6=98=BE=E7=A4=BAto?= =?UTF-8?q?ken=E7=9A=84=E4=B8=8D=E5=85=B7=E5=90=88=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 5 ++--- src/router/index.ts | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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') - }, + } ]