liudong
2024-07-30 ff8f0ad87016c47a4b21b39b62bbcc10254a2c51
src/views/dmx/knowledgeLib/add.vue
@@ -59,9 +59,8 @@
  }
)
// 上传文件
const submitForm = async()=>{
const submitForm = async(done)=>{
  if (files.value && files.value.length > 0) {
    loading.value = true;
    files.value.map((item) => {
      const formData = new FormData()
      formData.append('file', item.file);
@@ -74,7 +73,9 @@
        }
      })
    })
    loading.value = false;
    done(false)
  }else {
    done(false)
  }
}
@@ -96,7 +97,7 @@
  visible.value = true;
};
const handleBeforeOk = (done) => {
  submitForm();
  submitForm(done);
};
const handleCancel = () => {
  visible.value = false;