-- 测试环境url去除域名

This commit is contained in:
yuping
2022-12-28 14:27:44 +08:00
parent a84c14a7fb
commit e9d250e835
3 changed files with 17 additions and 16 deletions

View File

@@ -44,7 +44,7 @@ onMounted(() => {
function getUserInfo() {
boeRequest(GET_USER_INFO).then((res) => {
res.result.avatar = import.meta.env.VITE_BOE_API_URL + '/upload' + (res.result.avatar ? res.result.avatar : '/800e23f7-b58c-4192-820d-0c6a2b7544cc.png')
res.result.avatar = res.result.avatar ? res.result.avatar : '/800e23f7-b58c-4192-820d-0c6a2b7544cc.png'
store.commit("SET_USER", res.result);
});
}