Skip to content

Commit f747a28

Browse files
authored
fix(logout): clear all storage when logging out (#429)
fix #425
1 parent f19b2ee commit f747a28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/store/action.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as types from './mutation-type'
2-
import { removeToken } from '@/lin/util/token'
32

43
export default {
54
setUserAndState({ commit }, user) {
@@ -8,7 +7,7 @@ export default {
87
},
98

109
loginOut({ commit }) {
11-
removeToken()
10+
localStorage.clear()
1211
commit(types.REMOVE_LOGGED_IN, false)
1312
},
1413

0 commit comments

Comments
 (0)