From 7c287f6ae5b9cb1db128c6c3755b2461380ab4c1 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 10 Jun 2022 10:03:45 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E8=BE=93=E5=85=A5=E6=A1=86=E8=8D=89=E7=A8=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/js/pages/manage/components/ChatInput/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/pages/manage/components/ChatInput/index.vue b/resources/assets/js/pages/manage/components/ChatInput/index.vue index 8324c53f1..07876d27f 100755 --- a/resources/assets/js/pages/manage/components/ChatInput/index.vue +++ b/resources/assets/js/pages/manage/components/ChatInput/index.vue @@ -366,6 +366,7 @@ export default { taskId() { this.userList = null; this.taskList = null; + this.$emit('input', this.getInputCache()) }, showEmoji(val) { @@ -634,13 +635,13 @@ export default { }, getInputCache() { - const key = this.dialogId; + const key = this.dialogId || this.taskId; const item = this.dialogInputCache.find(item => item.key == key); return item ? item.cache : ''; }, setInputCache(cache) { - const key = this.dialogId; + const key = this.dialogId || this.taskId; const index = this.dialogInputCache.findIndex(item => item.key == key); const data = {key, cache} if (index > -1) {