mirror of https://github.com/halo-dev/halo
fix: cannot request the back-end logout api service (halo-dev/console#239)
parent
5d64fedb9b
commit
9ba5ce5a0d
|
@ -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