Merge remote-tracking branch 'origin/user-modify' into dev0731

This commit is contained in:
yujicun
2023-08-08 11:00:03 +08:00

View File

@@ -54,16 +54,9 @@ onMounted(() => {
});
function getUserInfo() {
if (import.meta.env.MODE === "development" || import.meta.env.MODE === "test") {
request(USER_INFO, {}).then(res => {
store.commit("SET_USER", res.data);
});
} else {
boeRequest(GET_USER_INFO).then((res) => {
res.result.avatar = res.result.avatar || "/800e23f7-b58c-4192-820d-0c6a2b7544cc.png";
store.commit("SET_USER", res.result);
});
}
}
</script>
<style lang="scss">