From cc4749faaa9a2bd9660e7b827e46f30a74043028 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期四, 14 十二月 2023 13:10:40 +0800 Subject: [PATCH] 修改样式 --- 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