mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 10:56:47 +08:00
提交退出登录接口
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user