优化提示

This commit is contained in:
yj 2024-08-14 17:10:17 +08:00
parent bd9ed38430
commit 14c1e6782b
1 changed files with 4 additions and 0 deletions

View File

@ -148,6 +148,10 @@ const SharedFilesModel = forwardRef((props: any, ref: any) => {
}} /> : null} }} /> : null}
<Button type="primary" style={{ backgroundColor: '#31353A' }} <Button type="primary" style={{ backgroundColor: '#31353A' }}
onClick={() => { onClick={() => {
if (isUpFile) {
message.error('文件上传中,请稍后上传。')
return
}
const file = document.createElement("input") as any; const file = document.createElement("input") as any;
file.type = "file"; file.type = "file";
file.onchange = async () => { file.onchange = async () => {