mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 02:46:46 +08:00
提交
This commit is contained in:
@@ -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']),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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='';
|
||||||
|
|||||||
Reference in New Issue
Block a user