This commit is contained in:
yuping
2023-01-16 00:54:10 +08:00
parent 762568ae8b
commit e974670cf0
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ 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.result);
store.commit("SET_USER", res.data);
})
}else{
boeRequest(GET_USER_INFO).then((res) => {

View File

@@ -160,7 +160,7 @@
</div>
<!-- todo #路径详情 个人信息缺少img和介绍-->
<div class="teacheritem" :style="{ 'border-bottom': '1px solid rgba(56, 125, 247, 0.2)' }">
<img class="peopleimg" :src="userInfo.avatar" />
<img class="peopleimg" :src="userInfo?.avatar" />
<div style="margin-left: 17px">
<div class="teacherName">
<div style="margin-right: 5px">