Browse Source

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

pull/240/head
王存露 4 years ago committed by GitHub
parent
commit
ad0c8fefb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/store/modules/user.js

2
src/store/modules/user.js

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

Loading…
Cancel
Save