diff --git a/components/comments/comments.vue b/components/comments/comments.vue index ffc60bf..3287b6f 100644 --- a/components/comments/comments.vue +++ b/components/comments/comments.vue @@ -277,6 +277,13 @@ }); }, submit(){ + if(this.inputValue==''){ + return; + } + this.inputValue=this.inputValue.replace(/^\s*|\s*$/g,""); + if(this.inputValue==''){ + return; + } if(this.inputValue!=''){ let cdata={ objType:this.objType,