src/router/index.ts
@@ -137,7 +137,7 @@ } if (Cookies.get(multipleTabsKey) && userInfo) { // 无权限跳转403页面 if (to.meta?.roles && !isOneOfArray(to.meta?.roles, userInfo?.roles)) { if (to.meta?.roles && !isOneOfArray(to.meta?.roles, userInfo?.exRoles)) { next({ path: "/error/403" }); } // 开启隐藏首页后在浏览器地址栏手动输入首页welcome路由则跳转到404页面