启动时,增加对token的检查

This commit is contained in:
daihh
2023-03-16 16:10:18 +08:00
parent 17dd44937e
commit 13e83580d3
5 changed files with 53 additions and 43 deletions

View File

@@ -31,6 +31,11 @@ const getUserInfoById = function(id) {
return ajax.postJson('/user/list',{id});
}
/**获取当前登录用户的信息*/
const getUserInfo = function() {
return ajax.postJson('/user/info',{});
}
/**
* https://u-pre.boe.com/userbasic/audience/userAudiences
* 获取当前用户受众信息
@@ -81,6 +86,7 @@ export default {
getOrgInfo,
findOrgTreeByOrgId,
getUserInfoById,
getUserInfo,
getUserCrowds,
getOrgHrbpInfo,
modifyPassword,