提交退出登录接口

This commit is contained in:
daihh
2023-07-06 18:28:27 +08:00
parent e5af1fe385
commit c0148bd724
3 changed files with 6 additions and 13 deletions

View File

@@ -4,6 +4,7 @@ import apiLogin from '@/api/login.js'
import apiBoeLogin from '@/api/boe/login.js'
import apiMessage from '@/api/system/message.js'
import config from '@/config/index.js'
import apiUserbasic from '@/api/boe/userbasic.js'
const user = {
state: {
@@ -132,11 +133,12 @@ const user = {
// 退出系统
LogOut({ commit, state }) {
return new Promise((resolve, reject) => {
apiBoeLogin.logout();
//apiBoeLogin.logout();
commit('SET_PERMISSIONS', [])
removeToken()
//resolve()
apiLogin.logout().then((res) => {
//apiLogin.logout()
apiUserbasic.logout().then((res) => {
resolve(res)
}).catch(error => {
reject(error)