vuex add namespaced

This commit is contained in:
Pan
2019-03-20 13:44:42 +08:00
parent 7c33568883
commit 0c50029cf7
20 changed files with 414 additions and 382 deletions

View File

@@ -75,10 +75,10 @@ export default {
},
methods: {
toggleSideBar() {
this.$store.dispatch('toggleSideBar')
this.$store.dispatch('app/toggleSideBar')
},
async logout() {
await this.$store.dispatch('Logout')
await this.$store.dispatch('user/logout')
// In order to re-instantiate the vue-router object to avoid bugs
location.reload()
}