mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-07 18:06:48 +08:00
-- bug
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user