测试调试

This commit is contained in:
qinshengcheng
2024-02-21 14:45:20 +08:00
parent 12e489660a
commit 7fa4eaeaed

View File

@@ -40,9 +40,14 @@ function getUserInfo() {
import.meta.env.MODE === "test"
) {
// request(USER_INFO, {}).then((res) => {
request(GET_USER_LIST, {}).then((res) => {
store.commit("SET_USER", res.data);
});
boeRequest(GET_USER_INFO).then((res) => {
res.result.avatar =
res.result.avatar || "/800e23f7-b58c-4192-820d-0c6a2b7544cc.png";
store.commit("SET_USER", res.result);
})
// request(GET_USER_LIST, {}).then((res) => {
// store.commit("SET_USER", res.data);
// });
} else {
// 修改生产环境验证 GET_USER_INFO 接口不存在 选择GET_USER_LIST
// boeRequest(GET_USER_INFO).then((res) => {