refine login

This commit is contained in:
Pan
2017-04-24 14:15:42 +08:00
parent e0695d422a
commit 47b24ca8b9
10 changed files with 104 additions and 36 deletions

View File

@@ -49,7 +49,6 @@ router.beforeEach((to, from, next) => {
if (to.path === '/login') {
next({ path: '/' });
} else {
console.log('a')
if (to.meta && to.meta.role) {
if (hasPermission(store.getters.roles, to.meta.role)) {
next();