diff --git a/src/components/Portal/comments.vue b/src/components/Portal/comments.vue index dad69bdb..423ec7bf 100644 --- a/src/components/Portal/comments.vue +++ b/src/components/Portal/comments.vue @@ -68,7 +68,7 @@ type="textarea" class="hideControl" show-word-limit - v-model="inputValue" + v-model.trim="inputValue" maxlength="800" placeholder="写下您的评论(800字以内),可以@案主哦~" > @@ -483,8 +483,7 @@ this.listShow=flag; }, submit(){ - - if(this.inputValue!=''){ + if(this.inputValue.trim()!=''){ let cdata={ objType:this.objType, objId:this.objId,