fix: cannot request the back-end logout api service (#239)

pull/240/head
王存露 2020-09-07 10:27:42 +08:00 committed by GitHub
parent 6479af2161
commit ad0c8fefb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(() => {