退出清空调整

This commit is contained in:
daihh
2023-08-10 11:19:59 +08:00
parent fda2d57033
commit 1889335347
6 changed files with 12 additions and 1259 deletions

View File

@@ -1,7 +1,6 @@
import { getToken, setToken, removeToken } from '@/utils/token'
import app from '@/api/app.js'
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'
@@ -133,10 +132,10 @@ const user = {
// 退出系统
LogOut({ commit, state }) {
return new Promise((resolve, reject) => {
//apiBoeLogin.logout();
commit('SET_PERMISSIONS', [])
removeToken()
//resolve()
//resolve()
//apiLogin.logout()
apiUserbasic.logout().then((res) => {
resolve(res)