refine code

This commit is contained in:
Pan
2017-08-22 15:09:25 +08:00
committed by 花裤衩
parent 62d2f62bff
commit b8ecda19d8
6 changed files with 11 additions and 17 deletions

View File

@@ -12,7 +12,7 @@ function hasPermission(roles, permissionRoles) {
}
// register global progress.
const whiteList = ['/login', '/authredirect', '/reset', '/sendpwd']// 不重定向白名单
const whiteList = ['/login', '/authredirect']// 不重定向白名单
router.beforeEach((to, from, next) => {
NProgress.start() // 开启Progress
if (getToken()) { // 判断是否有token