fix hash bug

This commit is contained in:
Pan 2017-05-11 11:52:22 +08:00
parent d0850e6d49
commit da0338cd72
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ router.beforeEach((to, from, next) => {
if (whiteList.indexOf(to.path) !== -1) { if (whiteList.indexOf(to.path) !== -1) {
next() next()
} else { } else {
next('/login') next('/login');
NProgress.done(); // 在hash模式下 改变手动改变hash 不会触发afterEach 暂时hack方案 pshistory模式下无问题可删除该行
} }
} }
}); });