提交修改

This commit is contained in:
lmj
2022-10-10 19:45:12 +08:00
parent f41bf46b6d
commit 254666382e
2 changed files with 14 additions and 5 deletions

View File

@@ -50,6 +50,7 @@
this.userName=this.name;
if(this.avatar && this.avatar!=''){
this.userAvatar=this.avatar;
}
this.usersex = this.sex;
},
@@ -64,8 +65,14 @@
this.userName=newVal;
},
avatar(newVal,oldVal){
console.log(newVal,'222')
if(newVal){
this.userAvatar=this.baseUrl+newVal;
if(newVal.startWith('http')){
this.userAvatar=newVal;
}else{
this.userAvatar=this.baseUrl+newVal;
}
}
},
sex(newVal,oldVal){

View File

@@ -13,8 +13,8 @@
</div>
<div class="personal-panel">
<div class="personal-img">
<author-img :avatar="userInfo.avatar" :aid="userInfo.aid" :sex="userInfo.sex"></author-img>
<author-img v-if="userInfo.avatar" :avatar="userInfo.avatar" :aid="userInfo.aid" :sex="userInfo.sex"></author-img>
<!-- {{ userInfo.avatar }} -->
</div>
<!-- <img style="width:68px;height:68px" src="/images/Avatarman.png" alt=""> -->
<p class="personal-name">{{userInfo.name}} {{userInfo.userNo}}</p>
@@ -484,7 +484,7 @@
},
mounted() {
this.userInfo = this.$store.getters.userInfo;
console.log(this.userInfo)
console.log(this.userInfo,'111')
this.getCourseData(1);
this.getCaseData();
this.getArticleData();
@@ -581,7 +581,6 @@
if (item.type == 10) {
return this.webBaseUrl + '/course/micro?id=' + item.id;
} else if (item.type == 20) {
console.log(item)
return this.webBaseUrl + '/course/detail?id=' + item.id;
}
return '';
@@ -961,6 +960,9 @@
::v-deep .el-avatar {
width: 68px;
height: 68px;
img{
width: 100% !important;
}
}
}