Browse Source

修复退出前信息消失导致的bug

main
piexlmax 3 years ago
parent
commit
5a22187209
  1. 2
      web/src/store/module/user.js

2
web/src/store/module/user.js

@ -27,13 +27,11 @@ export const user = {
state.token = token
},
NeedInit(state) {
state.userInfo = {}
state.token = ''
sessionStorage.clear()
router.push({ name: 'Init', replace: true })
},
LoginOut(state) {
state.userInfo = {}
state.token = ''
sessionStorage.clear()
router.push({ name: 'Login', replace: true })

Loading…
Cancel
Save