2025/11/12 登录后增加获取当前人信息的接口,验证是否登录成功
parent
1ac47187b2
commit
d6e7e55d12
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -40,15 +40,14 @@
|
|||
<script>
|
||||
import updateVersion from '../../utils/updateVersion'
|
||||
import {
|
||||
setEntry,
|
||||
getIsUploadFace,
|
||||
getClassInfoByParams,
|
||||
getClassList, getExamExercises
|
||||
getExamExercises,
|
||||
} from '../../api'
|
||||
import {
|
||||
getStudentInfoApi,
|
||||
setEntryV1
|
||||
} from "../../api/api";
|
||||
import {
|
||||
getStudentInfoApi, getUserInfoNew, getUserInfoV1,
|
||||
setEntryV1
|
||||
} from "../../api/api";
|
||||
import store from "../../store";
|
||||
|
||||
export default {
|
||||
|
|
@ -110,6 +109,7 @@
|
|||
}
|
||||
},
|
||||
onLoad() {
|
||||
getUserInfoNew();
|
||||
if (this.$store.getters.getUserInfo.USER_ID) {
|
||||
// 获取系统版本号, 其函数主体在 /utils/updateVersion.js 文件内查找
|
||||
this.fnUpdateVersion(false)
|
||||
|
|
|
|||
Loading…
Reference in New Issue