mirror of https://github.com/halo-dev/halo-admin
fix: cannot request the back-end logout api service (#239)
parent
6479af2161
commit
ad0c8fefb9
|
@ -67,10 +67,10 @@ const user = {
|
|||
commit
|
||||
}) {
|
||||
return new Promise(resolve => {
|
||||
commit('CLEAR_TOKEN')
|
||||
adminApi
|
||||
.logout()
|
||||
.then(response => {
|
||||
commit('CLEAR_TOKEN')
|
||||
resolve()
|
||||
})
|
||||
.catch(() => {
|
||||
|
|
Loading…
Reference in New Issue