修改文件上传管理不限制扩展名

This commit is contained in:
不做码农 2021-12-23 07:46:17 +08:00
parent 1d7c7511a7
commit b4ec217e9b
2 changed files with 1 additions and 11 deletions

View File

@ -115,7 +115,7 @@ export default {
//
handleBeforeUpload(file) {
//
if (this.fileType) {
if (this.fileType && this.fileType.length > 0) {
let fileExtension = "";
if (file.name.lastIndexOf(".") > -1) {
fileExtension = file.name.slice(file.name.lastIndexOf(".") + 1);

View File

@ -159,16 +159,6 @@ export default {
//
uploadUrl: "/common/uploadFile",
fileType: [
"doc",
"xls",
"ppt",
"txt",
"pdf",
"svga",
"json",
"jpg",
"jpeg",
"png",
],
//
dataList: [],