瀏覽代碼

增加权限

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', '/policyDetail',
'/attestationDetail', '/attestationDetail',
'/noticeDetail', '/noticeDetail',
'/homestead/index',



] ]


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


Loading…
取消
儲存