src/components_simple/UploadSingleFile.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components_simple/UploadSingleFile.vue
@@ -78,7 +78,7 @@ const formData = new FormData() formData.append('file', file) this.postFN({ url: 'admin/image/upload?type=3', url: 'admin/image/upload?folderCode=FILE', header: { 'Content-Type': 'multipart/form-data' }, params: formData, mockData: { @@ -90,7 +90,7 @@ } }, (inf) => { // 替换掉未上传的文件 this.$emit('change', [{ name: '素材' + this.extname(inf.path), url: inf.path, status: 'success' }]) this.$emit('change', [{ name: '文件' + this.extname(inf.path), url: inf.path, status: 'success' }]) console.log('上传文件成功且结束')