From cd5e7cc2de9eeb8cb097d4fe28ec2c10df7f51f6 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 08 十二月 2022 16:43:41 +0800
Subject: [PATCH] 1.修改刷新退出bug
---
src/permission.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/permission.js b/src/permission.js
index 41717e7..fd74217 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -19,7 +19,7 @@
// determine whether the user has logged in
// const hasToken = getToken()
- const hasToken = store.state.app.isGoToIndex
+ const hasToken = getCookie('admin')
if (hasToken) {
if (to.path === '/login') {
// if is logged in, redirect to the home page
--
Gitblit v1.9.3