mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-30 17:15:16 +01:00
fix: Close side bar when user change account
This commit is contained in:
parent
e4504682f4
commit
8cfa31256e
@ -33,6 +33,9 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
beforeDestroy () {
|
||||
this.close()
|
||||
},
|
||||
methods: {
|
||||
close () {
|
||||
this.$store.dispatch('TimelineSpace/Contents/SideBar/close')
|
||||
|
@ -23,7 +23,8 @@ const SideBar = {
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
close ({ commit }) {
|
||||
close ({ dispatch, commit }) {
|
||||
dispatch('TimelineSpace/Contents/SideBar/AccountProfile/close', {}, { root: true })
|
||||
commit('changeOpenSideBar', false)
|
||||
commit('changeComponent', 0)
|
||||
},
|
||||
|
@ -77,6 +77,9 @@ const AccountProfile = {
|
||||
resolve(res)
|
||||
})
|
||||
})
|
||||
},
|
||||
close ({ commit }) {
|
||||
commit('changeAccount', null)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user