ab419302 by lihua

产品目录上传文件支持csv

1 parent b929e94b
......@@ -36,7 +36,7 @@ const toolBar = computed(() => {
})
const onUpload = async (file, list) => {
const isExcel = file.raw.type === 'application/vnd.ms-excel' || file.raw.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
const isExcel = file.raw.type === 'application/vnd.ms-excel' || file.raw.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' || file.raw.type == 'text/csv';
if (!isExcel) {
const fileUpload = fileUploadRef.value[0] || fileUploadRef.value
fileUpload?.handleRemove(file)
......
......@@ -582,8 +582,8 @@ const setUploadInfo = () => {
auto: false,
cover: true,
fileList: [],
accept: '.xlsx, .xls',
tips: '当前支持xls、xlsx文件,默认使用第一个sheet'
accept: '.xlsx, .xls, .csv',
tips: '当前支持xls、xlsx、csv文件,默认使用第一个sheet'
}
}
]
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!