2025/11/12 登录后增加获取当前人信息的接口,验证是否登录成功

dev-2.0-mkmj
zhaohongyu 2025-11-12 15:32:51 +08:00
parent 1ac47187b2
commit d6e7e55d12
2 changed files with 7 additions and 6 deletions

View File

@ -2,6 +2,7 @@ import {post, upload} from "../utils/request";
// 已重构接口
export const getUserInfoV1 = (params) => post("/app/sys/user/getXgfUserInfo", params) // 获取用户信息
export const setUserInitV1 = (params) => post("/app/sys/user/xgfInit", params) //更新用户信息
export const getUserInfoNew = (params) => post('/sys/user/info', params)
export const getDicLevel = (params) => post("/app/sys/dictionaries/getLevels", params) // 获取数据字典
export const getEmpLog = (params) => post("/app/sys/user/getEmpLog", params) // 获取就职记录
export const uploadFile = (params) => upload("/app/sys/file/uploadFile", params);

View File

@ -40,13 +40,12 @@
<script>
import updateVersion from '../../utils/updateVersion'
import {
setEntry,
getIsUploadFace,
getClassInfoByParams,
getClassList, getExamExercises
getExamExercises,
} from '../../api'
import {
getStudentInfoApi,
getStudentInfoApi, getUserInfoNew, getUserInfoV1,
setEntryV1
} from "../../api/api";
import store from "../../store";
@ -110,6 +109,7 @@
}
},
onLoad() {
getUserInfoNew();
if (this.$store.getters.getUserInfo.USER_ID) {
// , /utils/updateVersion.js
this.fnUpdateVersion(false)