From c198da6bbb8f7ddae5b8ff84c4a1bff760f8a1b1 Mon Sep 17 00:00:00 2001 From: huangxianjun Date: Fri, 19 Mar 2021 12:12:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4403,404=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E8=BF=87=E6=BB=A4,=E5=BD=93token=E5=A4=B1=E6=95=88?= =?UTF-8?q?=E6=97=B6=E5=8D=B3=E4=BD=BF=E9=A1=B5=E9=9D=A2=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E4=B9=9F=E5=BA=94=E5=BD=93=E9=87=8D=E6=96=B0=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=9B=9Elogin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index c5aa144..dce9cfb 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -6,7 +6,8 @@ Vue.use(Router) // 不需要登录拦截的路由配置 const loginIgnore = { - names: ['404', '403'], //根据路由名称匹配 + names: [], + //names: ['404', '403'], //根据路由名称匹配 paths: ['/login'], //根据路由fullPath匹配 /** * 判断路由是否包含在该配置中