登录页面增加登出接口

This commit is contained in:
aixianling
2022-06-10 16:24:29 +08:00
parent 1218536e64
commit 2c9f3179c1
2 changed files with 9 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ const store = new Vuex.Store({
logout(state) {
state.token = ""
state.openUser = {}
state.user = {}
},
setOpenUser(state, user) {
state.openUser = user