mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 11:26:43 +08:00
头像问题,课程审核时,如果第一次拒绝了,再审核下一门课的时候,发现默认选项变成拒绝了,数据未重置问题
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { userAvatarText } from "@/utils/tools.js";
|
||||
|
||||
export default {
|
||||
props:{
|
||||
avatar:{
|
||||
@@ -101,22 +101,7 @@ import { userAvatarText } from "@/utils/tools.js";
|
||||
info(newVal,oldVal){
|
||||
this.userInfo=newVal;
|
||||
}
|
||||
},
|
||||
computed:{
|
||||
avatarText(){
|
||||
return userAvatarText(this.userName);
|
||||
}
|
||||
},
|
||||
// computed:{
|
||||
// headImag(){
|
||||
// if(this.avatar || this.avatar==null || this.avatar==''){
|
||||
// return require("@/assets/images/user/default.png");
|
||||
// }else{
|
||||
// return this.baseUrl+this.avatar;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user