-- fix bug

This commit is contained in:
yuping
2023-08-08 09:44:26 +08:00
parent 97221f680f
commit 4c20e271ea

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">