mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-09 02:46:47 +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"
|
import.meta.env.MODE === "test"
|
||||||
) {
|
) {
|
||||||
// request(USER_INFO, {}).then((res) => {
|
// request(USER_INFO, {}).then((res) => {
|
||||||
request(GET_USER_LIST, {}).then((res) => {
|
boeRequest(GET_USER_INFO).then((res) => {
|
||||||
store.commit("SET_USER", res.data);
|
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 {
|
} else {
|
||||||
// 修改生产环境验证 GET_USER_INFO 接口不存在 选择GET_USER_LIST
|
// 修改生产环境验证 GET_USER_INFO 接口不存在 选择GET_USER_LIST
|
||||||
// boeRequest(GET_USER_INFO).then((res) => {
|
// boeRequest(GET_USER_INFO).then((res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user