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

@@ -30,12 +30,12 @@
}
},
beforeRouteEnter: (to, from, next) => {
console.log('b')
const roles = store.getters.roles;
if (roles.length !== 0) {
next();
return
}
// loadingInstance = Loading.service({ fullscreen: true, text: '玩命加载中' });
store.dispatch('GetInfo').then(() => {
permission.init({

View File

@@ -27,7 +27,6 @@
<script>
import permissionRoutes from 'store/permission';
export default {
name: 'Sidebar',
data() {