44c67a26 by lihua

excel支持上传csv

1 parent ab5d551c
...@@ -476,7 +476,7 @@ const uploadFile = (file, item) => { ...@@ -476,7 +476,7 @@ const uploadFile = (file, item) => {
476 return Promise.resolve(); 476 return Promise.resolve();
477 } 477 }
478 if (item.isExcel) { 478 if (item.isExcel) {
479 const isExcel = file.file.type === 'application/vnd.ms-excel' || file.file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; 479 const isExcel = file.file.type === 'application/vnd.ms-excel' || file.file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' || file.file.type == 'text/csv';
480 if (!isExcel) { 480 if (!isExcel) {
481 uploadRef.value["ref" + item.field].handleRemove(file); 481 uploadRef.value["ref" + item.field].handleRemove(file);
482 ElMessage.error('上传文件只能是 .xls, .xlsx 格式'); 482 ElMessage.error('上传文件只能是 .xls, .xlsx 格式');
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!