Skip to content

Commit 5a22187

Browse files
author
piexlmax
committed
修复退出前信息消失导致的bug
1 parent 3d79274 commit 5a22187

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

web/src/store/module/user.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ export const user = {
2727
state.token = token
2828
},
2929
NeedInit(state) {
30-
state.userInfo = {}
3130
state.token = ''
3231
sessionStorage.clear()
3332
router.push({ name: 'Init', replace: true })
3433
},
3534
LoginOut(state) {
36-
state.userInfo = {}
3735
state.token = ''
3836
sessionStorage.clear()
3937
router.push({ name: 'Login', replace: true })

0 commit comments

Comments
 (0)