Skip to content

Commit

Permalink
revert: fix problems caused by git do not operate
Browse files Browse the repository at this point in the history
  • Loading branch information
hq001 committed Dec 22, 2020
1 parent 2e0e43d commit 5669562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5669562

Please sign in to comment.