diff --git a/components/interact-bar/interact-bar.vue b/components/interact-bar/interact-bar.vue index cdebe01..b73b48a 100644 --- a/components/interact-bar/interact-bar.vue +++ b/components/interact-bar/interact-bar.vue @@ -84,11 +84,16 @@ }, watch:{ data(newVal,oldVal){ + console.log(newVal,'newVal') if(newVal && newVal.id!=''){ this.checkHas(); } } }, + mounted() { + this.checkHas(); + // this.loadUser(); + }, computed:{ ...mapGetters(['userInfo']), }, diff --git a/components/interact-fixed/interact-fixed.vue b/components/interact-fixed/interact-fixed.vue index 5027463..f072eee 100644 --- a/components/interact-fixed/interact-fixed.vue +++ b/components/interact-fixed/interact-fixed.vue @@ -317,7 +317,7 @@ export default { } apiComment.add(cdata).then(res=>{ if(res.status==200){ - this.$refs.interactToast.show({message:'发布成功',type:'success'}); + // this.$refs.interactToast.show({message:'发布成功',type:'success'}); this.inputValue=''; this.data.comments++; this.toUserDig.chooseUserId='';