补充前端小模块说明注释

This commit is contained in:
2026-04-25 10:05:47 +08:00
parent d012b3e73b
commit 31f53ddfbe
4 changed files with 10 additions and 0 deletions
+2
View File
@@ -23,6 +23,7 @@ export function bindChatImageUploadControl() {
}
event.preventDefault();
// 点击按钮只打开隐藏文件框;真正上传在 change 事件与旧函数中处理。
document.getElementById("chat_image")?.click();
});
@@ -31,6 +32,7 @@ export function bindChatImageUploadControl() {
return;
}
// 文件校验、上传请求和消息插入继续复用存量 handleChatImageSelected。
if (typeof window.handleChatImageSelected === "function") {
window.handleChatImageSelected(event.target);
}