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
|
commit
|
||||||
}) {
|
}) {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
commit('CLEAR_TOKEN')
|
|
||||||
adminApi
|
adminApi
|
||||||
.logout()
|
.logout()
|
||||||
.then(response => {
|
.then(response => {
|
||||||
|
commit('CLEAR_TOKEN')
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|
Loading…
Reference in New Issue