头像问题,课程审核时,如果第一次拒绝了,再审核下一门课的时候,发现默认选项变成拒绝了,数据未重置问题

This commit is contained in:
daihh
2022-10-14 17:13:25 +08:00
parent 42ccaaef03
commit 0c28670d2b
5 changed files with 24 additions and 37 deletions

View File

@@ -48,11 +48,11 @@
},
mounted() {
this.userName=this.name;
if(this.avatar && this.avatar!=''){
if(this.avatar){
this.userAvatar=this.avatar;
}
this.usersex = this.sex;
console.log(this.userAvatar,"this.userAvatar newVal");
},
methods:{
toHome() {
@@ -65,6 +65,7 @@
this.userName=newVal;
},
avatar(newVal,oldVal){
console.log(newVal,"this.userAvatar newVal");
if(newVal){
if(newVal.startsWith('http')){
this.userAvatar=newVal;
@@ -74,13 +75,13 @@
}
},
aid(newVal,oldVal){
this.aid=newVal
},
sex(newVal,oldVal){
this.usersex=newVal;
},
},
computed:{
},
}
}
</script>