mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 17:36:45 +08:00
退出清空调整
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user