|
@@ -165,7 +165,7 @@ export default {
|
|
getOssConfig().then(res => {
|
|
getOssConfig().then(res => {
|
|
const fileKey = this.createName(fileName)
|
|
const fileKey = this.createName(fileName)
|
|
|
|
|
|
- res.data.name = this.fileName ? this.fileName : fileName
|
|
|
|
|
|
+ res.data.name = fileName
|
|
res.data.key = res.data.dir + fileKey
|
|
res.data.key = res.data.dir + fileKey
|
|
resolve(res.data)
|
|
resolve(res.data)
|
|
}).catch(res => {
|
|
}).catch(res => {
|
|
@@ -216,8 +216,9 @@ export default {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- this.$emit('handleIsFileName',this.fileName?this.fileName: file.name)
|
|
|
|
- this.dataObj = await this.getOssConfig(this.fileName?this.fileName: file.name)
|
|
|
|
|
|
+ this.$emit('handleIsFileName',file.name)
|
|
|
|
+ this.dataObj = await this.getOssConfig( file.name)
|
|
|
|
+ console.log(this.dataObj,'56565' );
|
|
this.waitUploadList.push(this.dataObj)
|
|
this.waitUploadList.push(this.dataObj)
|
|
},
|
|
},
|
|
|
|
|
|
@@ -239,7 +240,7 @@ export default {
|
|
})
|
|
})
|
|
this.waitUploadList = []
|
|
this.waitUploadList = []
|
|
} else {
|
|
} else {
|
|
- const index = findElem(this.waitUploadList, 'name', this.fileName ? this.fileName : file.name)
|
|
|
|
|
|
+ const index = findElem(this.waitUploadList, 'name', file.name)
|
|
this.fileList.push({
|
|
this.fileList.push({
|
|
name: this.waitUploadList[index].name,
|
|
name: this.waitUploadList[index].name,
|
|
url: this.waitUploadList[index].key,
|
|
url: this.waitUploadList[index].key,
|