From 72e475cb841372ddd8f09eda9a2902214b699cc5 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 27 Mar 2025 17:03:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=8D=89=E7=A8=BF?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E4=B8=8A=E4=B8=80=E6=AC=A1=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/js/pages/manage/components/ChatInput/index.vue | 8 ++++++-- 1 file changed, 6 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 4645df1c1..323dcfe42 100755 --- a/resources/assets/js/pages/manage/components/ChatInput/index.vue +++ b/resources/assets/js/pages/manage/components/ChatInput/index.vue @@ -695,8 +695,12 @@ export default { return this.dialogId > 0 ? (this.cacheDialogs.find(({id}) => id == this.dialogId) || {}) : {}; }, + draftId() { + return this.dialogId || `t_${this.taskId}` + }, + draftData() { - return this.getDialogDraft(this.dialogId)?.content || '' + return this.getDialogDraft(this.draftId)?.content || '' }, quoteData() { @@ -727,7 +731,7 @@ export default { } } if (!this.simpleMode) { - this.$store.dispatch("saveDialogDraft", {id: this.dialogId, content: val}) + this.$store.dispatch("saveDialogDraft", {id: this.draftId, content: val}) } },