mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-06 09:26:46 +08:00
测试调试
This commit is contained in:
11
src/App.vue
11
src/App.vue
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user