Remove modal in checkUploadFile()

This commit is contained in:
Yang Luo 2023-09-17 20:06:59 +08:00
parent 2bcc40a312
commit 9e9888d002
1 changed files with 6 additions and 4 deletions

View File

@ -103,12 +103,14 @@ class FileTree extends React.Component {
}
checkUploadFile(info) {
if (Conf.EnableExtraPages) {
for (let i = 0; i < info.fileList.length; i++) {
const filename = info.fileList[i].name;
if (this.getCacheApp(filename) === "" && filename.endsWith(".txt")) {
return true;
}
}
}
return false;
}