From 2c7c1e76b012138ca25b869771b9011fe4de2803 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 08 十二月 2022 16:43:21 +0800
Subject: [PATCH] 1.修改刷新退出bug
---
src/permission.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/permission.js b/src/permission.js
index 76c5b91..fd74217 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -19,8 +19,7 @@
// determine whether the user has logged in
// const hasToken = getToken()
- // const hasToken = getCookie('admin')
- 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