补充前端小模块说明注释
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user