From b012ab3a1e5495be068c543eb8f0482124db13b5 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期六, 31 十二月 2022 16:48:22 +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