From 7fa4eaeaed8177cad4f37adc10c1ffcc501a1060 Mon Sep 17 00:00:00 2001 From: qinshengcheng <928194311@qq.com> Date: Wed, 21 Feb 2024 14:45:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index f1bb513..c6355ab 100644 --- a/src/App.vue +++ b/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) => {