This commit is contained in:
zhaofang
2022-11-22 14:05:17 +08:00
parent e5dec24a94
commit a31deca25c
2 changed files with 6 additions and 1 deletions

View File

@@ -84,11 +84,16 @@
}, },
watch:{ watch:{
data(newVal,oldVal){ data(newVal,oldVal){
console.log(newVal,'newVal')
if(newVal && newVal.id!=''){ if(newVal && newVal.id!=''){
this.checkHas(); this.checkHas();
} }
} }
}, },
mounted() {
this.checkHas();
// this.loadUser();
},
computed:{ computed:{
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
}, },

View File

@@ -317,7 +317,7 @@ export default {
} }
apiComment.add(cdata).then(res=>{ apiComment.add(cdata).then(res=>{
if(res.status==200){ if(res.status==200){
this.$refs.interactToast.show({message:'发布成功',type:'success'}); // this.$refs.interactToast.show({message:'发布成功',type:'success'});
this.inputValue=''; this.inputValue='';
this.data.comments++; this.data.comments++;
this.toUserDig.chooseUserId=''; this.toUserDig.chooseUserId='';