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
|
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