From a0adfb4db43219711663b154fdb682894f6e4290 Mon Sep 17 00:00:00 2001 From: AceDataCloud Date: Mon, 1 Jan 2024 14:29:33 +0800 Subject: [PATCH] add introduction tips --- src/components/chat/AnsweringMark.vue | 2 +- src/components/chat/InputBox.vue | 4 +- src/components/chat/Introduction.vue | 59 ++++++++++++++++-------- src/components/chat/IntroductionItem.vue | 1 + src/components/chat/SidePanel.vue | 1 - src/i18n/zh/chat/message.ts | 13 ++++-- src/i18n/zh/chat/title.ts | 5 +- src/pages/chat/Conversation.vue | 11 ++++- src/pages/chat/Index.vue | 8 +--- src/pages/console/order/List.vue | 3 +- src/pages/midjourney/Index.vue | 3 -- src/plugins/font-awesome.ts | 4 ++ 12 files changed, 76 insertions(+), 38 deletions(-) diff --git a/src/components/chat/AnsweringMark.vue b/src/components/chat/AnsweringMark.vue index c446551d..7392da8f 100644 --- a/src/components/chat/AnsweringMark.vue +++ b/src/components/chat/AnsweringMark.vue @@ -6,7 +6,7 @@ import { defineComponent } from 'vue'; export default defineComponent({ - name: 'AnwseringMark', + name: 'AnsweringMark', data() { return {}; }, diff --git a/src/components/chat/InputBox.vue b/src/components/chat/InputBox.vue index 955d2dfd..c9da8244 100644 --- a/src/components/chat/InputBox.vue +++ b/src/components/chat/InputBox.vue @@ -102,7 +102,9 @@ export default defineComponent({ this.$emit('update:question', val); }, question(val: string) { - this.questionValue = val; + if (val !== this.questionValue) { + this.questionValue = val; + } }, references(val: string[]) { if (val.length === 0) { diff --git a/src/components/chat/Introduction.vue b/src/components/chat/Introduction.vue index b8306219..e0e436b1 100644 --- a/src/components/chat/Introduction.vue +++ b/src/components/chat/Introduction.vue @@ -1,45 +1,68 @@