From 3be9cfcb6b59366b936821966d20a998a6895f9f Mon Sep 17 00:00:00 2001
From: 黎星凯 <13949086503@163.com>
Date: 星期二, 30 四月 2024 14:38:13 +0800
Subject: [PATCH] bug41、42修改

---
 admin-web/src/permission.js |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/admin-web/src/permission.js b/admin-web/src/permission.js
index 589d741..f51017e 100644
--- a/admin-web/src/permission.js
+++ b/admin-web/src/permission.js
@@ -1,9 +1,9 @@
 import router from './router';
 import store from './store';
-import { Message } from 'element-ui';
+import {Message} from 'element-ui';
 import NProgress from 'nprogress'; // progress bar
 import 'nprogress/nprogress.css'; // progress bar style
-import { getToken, getCPass } from '@/utils/auth'; // get token from cookie
+import {getToken} from '@/utils/auth'; // get token from cookie
 import getPageTitle from '@/utils/get-page-title';
 
 NProgress.configure({ showSpinner: false }); // NProgress Configuration
@@ -23,7 +23,9 @@
   if (hasToken) {
     if (to.path === '/login') {
       // if is logged in, redirect to the home page
-      next({ path: '/' });
+      // next({ path: '/' });
+
+      next();
       NProgress.done();
     }else if( to.path === '/resetPwd'){
       next();

--
Gitblit v1.9.1