迁移聊天图片上传事件绑定

This commit is contained in:
2026-04-25 03:41:45 +08:00
parent ca61dd42f7
commit 64a1e5d769
3 changed files with 44 additions and 3 deletions
@@ -111,9 +111,8 @@ $welcomeMessages = [
style="font-size: 11px; padding: 1px 6px; background: #2563eb; color: #fff; border: none; border-radius: 2px; cursor: pointer;">🎣
钓鱼</button>
<input type="file" id="chat_image" name="image" accept="image/jpeg,image/png,image/gif,image/webp" style="display:none;"
onchange="handleChatImageSelected(this)">
<button type="button" onclick="document.getElementById('chat_image')?.click()"
<input type="file" id="chat_image" name="image" accept="image/jpeg,image/png,image/gif,image/webp" style="display:none;">
<button type="button" data-chat-image-upload-trigger
style="font-size: 11px; padding: 1px 6px; background: #0f766e; color: #fff; border: none; border-radius: 2px; cursor: pointer;">
📷 图片
</button>