diff --git a/works/ai-chat-app/www/app.js b/works/ai-chat-app/www/app.js
index 2e6a9b2..1a3c758 100644
--- a/works/ai-chat-app/www/app.js
+++ b/works/ai-chat-app/www/app.js
@@ -139,9 +139,9 @@ function openConversation(id) {
你好!我是AI助手
有什么可以帮助你的吗?
-
-
-
+
+
+
@@ -174,6 +174,15 @@ function openConversation(id) {
// 渲染消息
renderMessages();
userInput.focus();
+
+ // 绑定快捷按钮事件
+ document.querySelectorAll('.quick-btn').forEach(btn => {
+ btn.addEventListener('click', () => {
+ const text = btn.getAttribute('data-text');
+ userInput.value = text;
+ sendMessage();
+ });
+ });
}
// 删除对话