mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
修改退出接口调用
This commit is contained in:
@@ -8,6 +8,13 @@ const login = function() {
|
|||||||
return ajax.post(baseURL,'/org/userParentOrg',{});
|
return ajax.post(baseURL,'/org/userParentOrg',{});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**退出*/
|
||||||
|
const logout = function() {
|
||||||
|
return ajax.postJson(baseURL,'/userbasic/logout',{from:'pc'});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取用户的组织机构
|
* 获取用户的组织机构
|
||||||
* organization_id
|
* organization_id
|
||||||
@@ -106,5 +113,6 @@ export default {
|
|||||||
modifyPassword,
|
modifyPassword,
|
||||||
getInAudienceIds,
|
getInAudienceIds,
|
||||||
getUsersByIds,
|
getUsersByIds,
|
||||||
updateUser
|
updateUser,
|
||||||
|
logout
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1484,6 +1484,7 @@ export default {
|
|||||||
aid:rs.result.id,
|
aid:rs.result.id,
|
||||||
orgId:rs.result.orgId
|
orgId:rs.result.orgId
|
||||||
}
|
}
|
||||||
|
//下面的机构名称,路径不对,应该取课程的资源归属(机构)的路径
|
||||||
postData.course.orgName=rs.result.orgNamePath+'/'+rs.result.orgName;
|
postData.course.orgName=rs.result.orgNamePath+'/'+rs.result.orgName;
|
||||||
apiCourse.submitCourse(postData).then(res => {
|
apiCourse.submitCourse(postData).then(res => {
|
||||||
//this.btnLoading=false;
|
//this.btnLoading=false;
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import apiCourse from "@/api/modules/course.js";
|
|||||||
import apiBoeCourse from "@/api/boe/course.js";
|
import apiBoeCourse from "@/api/boe/course.js";
|
||||||
import apiBoeLogout from "@/api/boe/login.js";
|
import apiBoeLogout from "@/api/boe/login.js";
|
||||||
import apiStat from "@/api/phase2/stat.js";
|
import apiStat from "@/api/phase2/stat.js";
|
||||||
|
import apiUserbasic from '@/api/boe/userebasic.js';
|
||||||
|
|
||||||
const user = {
|
const user = {
|
||||||
state: {
|
state: {
|
||||||
@@ -227,8 +228,8 @@ const user = {
|
|||||||
commit('SET_PERMISSIONS', [])
|
commit('SET_PERMISSIONS', [])
|
||||||
removeToken()
|
removeToken()
|
||||||
//resolve()
|
//resolve()
|
||||||
|
//apiLogin.logout();
|
||||||
apiLogin.logout().then(() => {
|
apiUserbasic.logout().then(() => {
|
||||||
resolve()
|
resolve()
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
reject(error)
|
reject(error)
|
||||||
|
|||||||
Reference in New Issue
Block a user