From e98106b154c86d0bde671f14c9efb2c921919dbf Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期日, 19 一月 2025 14:11:46 +0800 Subject: [PATCH] 问题例子 --- src/components/chat/smallChat/index.vue | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/chat/smallChat/index.vue b/src/components/chat/smallChat/index.vue index c63239b..d6319c2 100644 --- a/src/components/chat/smallChat/index.vue +++ b/src/components/chat/smallChat/index.vue @@ -35,9 +35,9 @@ v-for="(item, index) in initQuestionList" :key="index" class="cursor-pointer hover:bg-gray-50 p-3 rounded-lg border border-solid border-gray-400" - @click="handleQuestionClick(item)" + @click="handleQuestionClick(item.question)" > - {{ item }} + {{ item.title }} </div> </div> </div> @@ -113,7 +113,12 @@ const historyMessages = ref<ChatMessage[]>([]); const isInit = computed(() => historyMessages.value.length === 0); -const initQuestionList = ref(['鏀惧ぇ', '缂╁皬']); +const initQuestionList = ref([ + { title: '鍥惧眰鍒囨崲', question: '鍒囨崲鍗槦鍦板浘' }, + { title: '鍦板浘缂╂斁', question: '鏀惧ぇ' }, + { title: '璁惧鏄鹃殣', question: '闅愯棌璁惧' }, + { title: '璁惧鑱氱劍', question: '鑱氱劍璁惧' }, +]); const chatContentRef = ref<HTMLDivElement>(null); const getLastAssistantMessage = () => { @@ -142,7 +147,7 @@ handleMapCommand({ operate: '鑱氱劍璁惧' }); return; } -} +}; const startStream = (question: string) => { if (lastIsInit) { -- Gitblit v1.9.3