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 getUserInfoV1 = (params) => post("/app/sys/user/getXgfUserInfo", params) // 获取用户信息
|
||||||
export const setUserInitV1 = (params) => post("/app/sys/user/xgfInit", 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 getDicLevel = (params) => post("/app/sys/dictionaries/getLevels", params) // 获取数据字典
|
||||||
export const getEmpLog = (params) => post("/app/sys/user/getEmpLog", params) // 获取就职记录
|
export const getEmpLog = (params) => post("/app/sys/user/getEmpLog", params) // 获取就职记录
|
||||||
export const uploadFile = (params) => upload("/app/sys/file/uploadFile", params);
|
export const uploadFile = (params) => upload("/app/sys/file/uploadFile", params);
|
||||||
|
|
|
||||||
|
|
@ -40,13 +40,12 @@
|
||||||
<script>
|
<script>
|
||||||
import updateVersion from '../../utils/updateVersion'
|
import updateVersion from '../../utils/updateVersion'
|
||||||
import {
|
import {
|
||||||
setEntry,
|
|
||||||
getIsUploadFace,
|
getIsUploadFace,
|
||||||
getClassInfoByParams,
|
getClassInfoByParams,
|
||||||
getClassList, getExamExercises
|
getExamExercises,
|
||||||
} from '../../api'
|
} from '../../api'
|
||||||
import {
|
import {
|
||||||
getStudentInfoApi,
|
getStudentInfoApi, getUserInfoNew, getUserInfoV1,
|
||||||
setEntryV1
|
setEntryV1
|
||||||
} from "../../api/api";
|
} from "../../api/api";
|
||||||
import store from "../../store";
|
import store from "../../store";
|
||||||
|
|
@ -110,6 +109,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
getUserInfoNew();
|
||||||
if (this.$store.getters.getUserInfo.USER_ID) {
|
if (this.$store.getters.getUserInfo.USER_ID) {
|
||||||
// 获取系统版本号, 其函数主体在 /utils/updateVersion.js 文件内查找
|
// 获取系统版本号, 其函数主体在 /utils/updateVersion.js 文件内查找
|
||||||
this.fnUpdateVersion(false)
|
this.fnUpdateVersion(false)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue