浏览代码

增加权限

wulanhaote
liuminjian 3 年前
父节点
当前提交
18437b6ad1
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      src/permission.js

+ 3
- 1
src/permission.js 查看文件

@@ -27,6 +27,8 @@ const whiteList = [
'/policyDetail',
'/attestationDetail',
'/noticeDetail',
'/homestead/index',


]

@@ -67,7 +69,7 @@ router.beforeEach((to, from, next) => {
next()
} else {
next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
//next('/index');
//next('/index');
NProgress.done()
}
}


正在加载...
取消
保存