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