update
This commit is contained in:
@@ -26,6 +26,7 @@ import Dialog from '@/components/common/dialog/index.vue';
|
||||
import TableForm from '@/components/common/table/tableForm.vue';
|
||||
import { uploadBigFile } from '@/utils/file';
|
||||
import emitter from '@/utils/eventBus';
|
||||
import { ElMessage } from 'element-plus';
|
||||
|
||||
const emit = defineEmits(['finished']);
|
||||
|
||||
@@ -79,6 +80,10 @@ watch(
|
||||
);
|
||||
|
||||
const addFileFun = (file: any) => {
|
||||
if (file.size <= 0) {
|
||||
ElMessage.warning('大小为0的文件已被过滤');
|
||||
return false;
|
||||
}
|
||||
formData.value.files.push(file);
|
||||
formData.value.fileTypeDictValue = props.fileType;
|
||||
formData.value.disciplineDictValue = props.discipline;
|
||||
|
||||
Reference in New Issue
Block a user