mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
头像问题,课程审核时,如果第一次拒绝了,再审核下一门课的时候,发现默认选项变成拒绝了,数据未重置问题
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user