|
@@ -52,8 +52,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleRemove (file, fileList) {
|
|
|
-
|
|
|
this.fileList = this.fileList.filter(e=>{
|
|
|
+ if (e.uid === file.uid) {
|
|
|
+ console.log(e)
|
|
|
+ }
|
|
|
return e.uid !== file.uid
|
|
|
})
|
|
|
this.fileLinkList = this.fileLinkList.filter(e=>{
|
|
@@ -62,13 +64,13 @@ export default {
|
|
|
},
|
|
|
toUpload () {
|
|
|
console.log(this.fileList)
|
|
|
- this.fileList.forEach(file=>{
|
|
|
- let index = file.raw.name.lastIndexOf(".");
|
|
|
- let ext = file.name.substr(index + 1);
|
|
|
- this.params.content.filename = file.raw.name
|
|
|
- this.params.content.filetype = ext
|
|
|
- this.getUploadUrl(file, ext)
|
|
|
- })
|
|
|
+ // this.fileList.forEach(file=>{
|
|
|
+ // let index = file.raw.name.lastIndexOf(".");
|
|
|
+ // let ext = file.name.substr(index + 1);
|
|
|
+ // this.params.content.filename = file.raw.name
|
|
|
+ // this.params.content.filetype = ext
|
|
|
+ // this.getUploadUrl(file, ext)
|
|
|
+ // })
|
|
|
|
|
|
},
|
|
|
|