From d513ecbef9fe551a97c9fcc1b226d1f2edddf2f3 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Fri, 8 Jul 2022 13:41:22 +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 --- src/components/Portal/comments.vue | 14 ++++++++------ src/views/portal/qa/Answer.vue | 14 +++++++------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/components/Portal/comments.vue b/src/components/Portal/comments.vue index d93c5977..68017b34 100644 --- a/src/components/Portal/comments.vue +++ b/src/components/Portal/comments.vue @@ -57,7 +57,7 @@ type="textarea" class="hideControl" show-word-limit - v-model.trim="inputValue" + v-model="inputValue" maxlength="800" placeholder="写下您的评论(800字以内),可以@作者哦~" > @@ -67,7 +67,7 @@ type="textarea" class="hideControl" show-word-limit - v-model.trim="inputValue" + v-model="inputValue" maxlength="800" placeholder="写下您的评论(800字以内),可以@案主哦~" > @@ -113,7 +113,7 @@
- +
发布回复 @@ -154,7 +154,7 @@
- +
发布回复 @@ -199,7 +199,7 @@
- +
发布回复 @@ -487,7 +487,7 @@ objType:this.objType, objId:this.objId, parentId:'-1', - content:this.inputValue, + content:this.inputValue.trim(), clevel:1, toAid:'', toAname:'', @@ -553,6 +553,7 @@ this.replyInfo.parentId=''; }, submitReply(comment){ + this.replyInfo.content = this.replyInfo.content.trim(); if(this.replyInfo.content==''){ return; } @@ -659,6 +660,7 @@ this.replyShow=true; }, submitDlgReply(){ + this.replyInfo.content = this.replyInfo.content.trim(); if(this.replyInfo.content==''){ return; } diff --git a/src/views/portal/qa/Answer.vue b/src/views/portal/qa/Answer.vue index d9c18f1c..b5d4f305 100644 --- a/src/views/portal/qa/Answer.vue +++ b/src/views/portal/qa/Answer.vue @@ -44,7 +44,7 @@
+ v-model="content">
发布 @@ -124,7 +124,7 @@
- 发布回复
@@ -167,7 +167,7 @@ -->
- 发布回复
@@ -212,8 +212,8 @@
- + 发布回复
@@ -624,7 +624,7 @@ export default { if (this.content.length < 1 || this.content.trim() == "@" + this.detailData.name) { return this.$message.warning("请输入回答"); } else { - content = this.content; + content = this.content.trim(); } apiQa.saveAnswer({ qid: this.$route.query.id, @@ -734,7 +734,7 @@ export default { let replyData = { replayAid: data.sysCreateAid, replayName: data.sysCreateBy, - content: this.replyContent, + content: this.replyContent.trim(), parentId: data.id, commentId: "", clevel: 2