新建一个js文件file.js
/**
* Created by xiewei on 30/05/2023
*/
const imgData = [
//EXCEL1
{
type: ['xls', 'XLS', 'xlsx', 'XLSX'],
imgSrc: require("@/assets/images/fileIcon/x.png")
},
//WORD2
{
type: ['doc', 'DOC', 'docx', 'DOCX'],
imgSrc: require("@/assets/images/fileIcon/word.png")
},
//PDF3
{
type: ['PDF', 'pdf'],
imgSrc: require("@/assets/images/fileIcon/pdf.png")
},
//zip4
{
type: ['txt', 'TXT'],
imgSrc: require("@/assets/images/fileIcon/txt.png")
},
//rar5
{
type: ['rar', 'RAR'],
imgSrc: require("@/assets/images/fileIcon/rar.png")
},
//PDt6
{
type: ['ppt', 'pptx', 'PPT', 'PPTX'],
imgSrc: require("@/assets/images/fileIcon/ppt.png")
},
//PDF7
{
type