Commit 0867c7f2 authored by 李苏's avatar 李苏 💬

退出报错

parent a11a10c5
......@@ -84,11 +84,11 @@ const user = {
// 退出系统
LogOut({ commit, state }) {
return new Promise((resolve, reject) => {
logout().then((res) => {
resolve()
}).catch(error => {
reject(error)
})
// logout().then((res) => {
// resolve()
// }).catch(error => {
// reject(error)
// })
commit('SET_TOKEN', '')
commit('SET_ROLES', [])
commit('SET_PERMISSIONS', [])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment