修改测试bug及人脸核实

This commit is contained in:
gyj
2024-04-25 17:58:36 +08:00
parent 0d22fa41e1
commit fa0b195ec1
8 changed files with 127 additions and 43 deletions
+2 -1
View File
@@ -73,13 +73,14 @@ const user = {
},
// 退出系统
LogOut({ commit, state }) {
LogOut({ commit, state, dispatch }) {
return new Promise((resolve, reject) => {
logout(state.token).then(() => {
commit('SET_TOKEN', '')
commit('SET_ROLES', [])
commit('SET_PERMISSIONS', [])
removeToken()
dispatch('tagsView/delAllViews', null, { root: true })
resolve()
}).catch(error => {
reject(error)