src/components/FileUpload/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/FileUpload/index.vue
@@ -2,6 +2,7 @@ <div class="upload-file"> <el-upload multiple :accept="acceptList" :action="uploadFileUrl" :before-upload="handleBeforeUpload" :file-list="fileList" @@ -109,6 +110,11 @@ showTip() { return this.isShowTip && (this.fileType || this.fileSize); }, acceptList () { let temp = '.*' temp = this.fileType.map(item => '.' + item).join(',') return temp } }, methods: { // 上传前校检格式和大小