使用addRoutes重构权限

This commit is contained in:
Pan
2017-05-17 16:26:33 +08:00
parent 624af00ba3
commit faea4d8bf6
10 changed files with 191 additions and 192 deletions

View File

@@ -26,7 +26,7 @@
</template>
<script>
import { mapGetters } from 'vuex'
import { mapGetters } from 'vuex';
import Levelbar from './Levelbar';
import Hamburger from 'components/Hamburger';
import ErrLog from 'components/ErrLog';
@@ -56,7 +56,7 @@
},
logout() {
this.$store.dispatch('LogOut').then(() => {
this.$router.push({ path: '/login' })
location.reload();// 为了重新实例化vue-router对象 避免bug
});
}
}