Browse Source

fix-bugs

tags/v1.22.11.2^2
chenshihai 3 years ago
parent
commit
c2453a20af
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-2.vue

+ 5
- 0
web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-2.vue View File

@@ -194,6 +194,11 @@ export default {
const filesSize = fileList.reduce((acc, item, index) => acc + item.size, 0) + (file ? file.size : 0);
const filesCount = fileList.length + (file ? 1 : 0);
const allfilesSize = filesSize + this.state.size;
if (file && filesCount > maxFileSize) {
this.dropzoneHandler.removeFile(file);
this.showUploadErrInfo(true, this.getDefaultErrTxt());
return false;
}
if (filesCount > maxFileSize || allfilesSize > maxModelFilesSize) {
this.showUploadErrInfo(true, this.getDefaultErrTxt());
return false;


Loading…
Cancel
Save