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;