mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-07 01:46:45 +08:00
验证537问题
This commit is contained in:
@@ -35,10 +35,12 @@ onMounted(() => {
|
||||
|
||||
|
||||
function getUserInfo() {
|
||||
console.log("-- 获取登录用户信息---", answerTime);
|
||||
if (
|
||||
import.meta.env.MODE === "development" ||
|
||||
import.meta.env.MODE === "test"
|
||||
) {
|
||||
console.log("-- 获取环境信息 01---", import.meta.env.MODE);
|
||||
// request(USER_INFO, {}).then((res) => {
|
||||
boeRequest(GET_USER_INFO).then((res) => {
|
||||
res.result.avatar =
|
||||
@@ -49,6 +51,7 @@ function getUserInfo() {
|
||||
// store.commit("SET_USER", res.data);
|
||||
// });
|
||||
} else {
|
||||
console.log("-- 获取环境信息 02---", import.meta.env.MODE);
|
||||
// 修改生产环境验证 GET_USER_INFO 接口不存在 选择GET_USER_LIST
|
||||
// boeRequest(GET_USER_INFO).then((res) => {
|
||||
// res.result.avatar =
|
||||
@@ -56,7 +59,7 @@ function getUserInfo() {
|
||||
// store.commit("SET_USER", res.result);
|
||||
// });
|
||||
|
||||
boeRequest(GET_USER_LIST, {}).then((res) => {
|
||||
boeRequest(GET_USER_INFO, {}).then((res) => {
|
||||
store.commit("SET_USER", res.data);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user