From f0e12d0657e6c4852ccc81bc21e557fa1871f115 Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Wed, 21 Feb 2024 14:56:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81537=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index c6355ab..fc98570 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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); }); }