From c2b754d682a4521562b847e5d19732ba0c688153 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sun, 5 Jun 2022 21:09:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=AF=E4=BB=A5=E5=8F=91?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E7=A9=BA=E6=A0=BC=E6=B6=88=E6=81=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/pages/manage/components/ChatInput/index.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/resources/assets/js/pages/manage/components/ChatInput/index.vue b/resources/assets/js/pages/manage/components/ChatInput/index.vue index 2d4222915..ed132f347 100755 --- a/resources/assets/js/pages/manage/components/ChatInput/index.vue +++ b/resources/assets/js/pages/manage/components/ChatInput/index.vue @@ -128,6 +128,10 @@ export default { components: {ChatEmoji}, directives: {touchmouse, TransferDom, clickoutside}, props: { + value: { + type: [String, Number], + default: '' + }, dialogId: { type: Number, default: 0 @@ -136,10 +140,6 @@ export default { type: Number, default: 0 }, - value: { - type: [String, Number], - default: '' - }, placeholder: { type: String, default: '' @@ -528,7 +528,8 @@ export default { this.quill.deleteText(this.maxlength, this.quill.getLength()); } let html = this.$refs.editor.children[0].innerHTML - html = html.replace(/^(


<\/p>)+|(


<\/p>)+$/gi, '') + html = html.replace(/^(

\s*<\/p>)+|(

\s*<\/p>)+$/gi, '') + html = html.replace(/^(

<\/p>)+|(

<\/p>)+$/gi, '') this._content = html this.$emit('input', this._content) this.$nextTick(_ => {