退出修改

This commit is contained in:
daihh
2023-07-06 14:49:21 +08:00
parent c02b6e006b
commit cee14b372e
3 changed files with 3 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ const login = function() {
/**退出*/ /**退出*/
const logout = function() { const logout = function() {
return ajax.postJson(baseURL,'/userbasic/logout',{from:'pc'}); return ajax.postJson(baseURL,'/logout',{from:'pc'});
} }

View File

@@ -292,11 +292,10 @@ export default {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}) }).then(() => {
.then(() => {
this.$store.dispatch('LogOut').then(() => { this.$store.dispatch('LogOut').then(() => {
//location.href = this.webBaseUrl + '/login'; //location.href = this.webBaseUrl + '/login';
sessionStorage.setItem('dialog_session_show'+this.userInfo.aid,null); // 清除兴趣采集的"关闭"缓存 sessionStorage.setItem('dialog_session_show'+this.userInfo.aid,null); // 清除兴趣采集的"关闭"缓存
location.href = process.env.VUE_APP_LOGIN_URL; location.href = process.env.VUE_APP_LOGIN_URL;
}); });
}) })

View File

@@ -224,7 +224,6 @@ const user = {
// 退出系统 // 退出系统
LogOut({ commit, state }) { LogOut({ commit, state }) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
apiBoeLogout.logout();
commit('SET_PERMISSIONS', []) commit('SET_PERMISSIONS', [])
removeToken() removeToken()
//resolve() //resolve()