mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
提交修改
This commit is contained in:
@@ -50,6 +50,7 @@
|
||||
this.userName=this.name;
|
||||
if(this.avatar && this.avatar!=''){
|
||||
this.userAvatar=this.avatar;
|
||||
|
||||
}
|
||||
this.usersex = this.sex;
|
||||
},
|
||||
@@ -64,9 +65,15 @@
|
||||
this.userName=newVal;
|
||||
},
|
||||
avatar(newVal,oldVal){
|
||||
console.log(newVal,'222')
|
||||
if(newVal){
|
||||
if(newVal.startWith('http')){
|
||||
this.userAvatar=newVal;
|
||||
}else{
|
||||
this.userAvatar=this.baseUrl+newVal;
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
sex(newVal,oldVal){
|
||||
this.usersex=newVal;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user