From 81a2a99f1cfd6a01c15823f309d54b9bf8a12113 Mon Sep 17 00:00:00 2001 From: zzl <961867786@qq.com> Date: Tue, 18 Jul 2023 18:11:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8Aconsole?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/permission.js b/src/permission.js index eb329b73..9493baae 100644 --- a/src/permission.js +++ b/src/permission.js @@ -213,9 +213,9 @@ router.beforeEach((to, from, next) => { } } catch (e) { console.log(e); } // Message.error(err) - if ('/authenticRight/index'.indexOf(to.path) !== -1) { + if ('/authenticRight'.indexOf(to.path) !== -1) { next({ path: '/authenticRight/login' }) - } else if ('/homestead/index'.indexOf(to.path) !== -1) { + } else if ('/homestead'.indexOf(to.path) !== -1) { next({ path: '/homestead/login' }) } else if (to.path.indexOf('/onlineHome') !== -1) { //next(`/onlineHomeLogin`)