fix: cannot request the back-end logout api service (halo-dev/console#239)

pull/3445/head
王存露 2020-09-07 10:27:42 +08:00 committed by GitHub
parent 5d64fedb9b
commit 9ba5ce5a0d
1 changed files with 1 additions and 1 deletions

View File

@ -67,10 +67,10 @@ const user = {
commit
}) {
return new Promise(resolve => {
commit('CLEAR_TOKEN')
adminApi
.logout()
.then(response => {
commit('CLEAR_TOKEN')
resolve()
})
.catch(() => {