From d1958c0d72946b04b7949eee1a28c06430a73874 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Thu, 13 Jun 2024 10:59:23 +0800
Subject: [PATCH] bug修改
---
src/permission.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/permission.js b/src/permission.js
index f13cc3c..b3da443 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -11,7 +11,7 @@
NProgress.configure({ showSpinner: false });
-const whiteList = ['/homePage'];
+const whiteList = ['/homePage','/fillForm'];
router.beforeEach((to, from, next) => {
NProgress.start()
@@ -52,7 +52,8 @@
// 在免登录白名单,直接进入
next()
} else {
- next(`/homePage?redirect=${to.fullPath}`) // 否则全部重定向到登录页
+ // next(`/homePage?redirect=${to.fullPath}`) // 否则全部重定向到登录页
+ next('/homePage')
NProgress.done()
}
}
--
Gitblit v1.9.2