From 566956218cd90a64bc74cafb2a162ae06f4d9d53 Mon Sep 17 00:00:00 2001 From: Link Date: Tue, 22 Dec 2020 12:09:34 +0800 Subject: [PATCH] revert: fix problems caused by git do not operate --- src/router/hook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/hook.ts b/src/router/hook.ts index f8620970..80c2828e 100644 --- a/src/router/hook.ts +++ b/src/router/hook.ts @@ -3,7 +3,7 @@ import { isLogin, showLogin } from '@/helpers' export function hook(router: Router) { router.beforeEach((to, from, next) => { - if (to.meta.auth && isLogin()) { + if (to.meta.auth && !isLogin()) { showLogin() next(false) return