diff --git a/src/pages/ai/chat.vue b/src/pages/ai/chat.vue index 6caf8ac..2ad612a 100644 --- a/src/pages/ai/chat.vue +++ b/src/pages/ai/chat.vue @@ -1018,6 +1018,12 @@ const handleQuickQuestion = (question: string) => { handleSendMessage() } +// 处理快捷按钮点击 +const handleQuickAction = (action: QuickAction) => { + inputMessage.value = action.message + handleSendMessage() +} + const handleConfirmation = (message: Message, confirmation: string) => { // 如果已经选择过,不再处理 if (message.selectedConfirmation !== undefined) {