diff --git a/frontend/src/routers/index.ts b/frontend/src/routers/index.ts index d8c5b1b7b..40d852026 100644 --- a/frontend/src/routers/index.ts +++ b/frontend/src/routers/index.ts @@ -15,10 +15,8 @@ router.beforeEach((to, from, next) => { if (to.name === 'entrance' && globalStore.isLogin) { if (to.params.code === globalStore.entrance) { - globalStore.setLogStatus(false); next({ - name: 'entrance', - params: { code: globalStore.entrance }, + name: 'home', }); NProgress.done(); return;