From b31d0bdae5ab5e7c24eadf08fea270c6bb9f3c7a Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 09 二月 2023 16:58:46 +0800
Subject: [PATCH] 1.自动排程代码正在研究

---
 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