From 49cdb7e8eaeefcd658f8953268927560e0c1cd79 Mon Sep 17 00:00:00 2001 From: daihh Date: Fri, 29 Jul 2022 20:26:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/comments/comments.vue | 7 +++++++ 1 file changed, 7 insertions(+) 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,