图片上传相关问题修改

This commit is contained in:
FrancisHu 2024-08-26 17:32:23 +08:00
parent b021423006
commit aafab5adee
2 changed files with 16 additions and 10 deletions

View File

@ -168,11 +168,14 @@ export default {
console.log(this.editParams)
if (this.editParams) {
Object.assign(this.protocolParams, this.editParams)
if(this.protocolParams.url !== '') {
this.fileList = []
this.fileList.push({
name: this.protocolParams.url,
url: this.protocolParams.url
})
this.picList.push(this.protocolParams.url)
}
this.subSort = 2
} else {
this.subSort = 1

View File

@ -107,11 +107,14 @@ export default {
console.log(this.editParams)
if (this.editParams) {
Object.assign(this.supplierParams, this.editParams)
if(this.supplierParams.picUrl !== '') {
this.fileList = []
this.fileList.push({
name: this.supplierParams.picUrl,
url: this.supplierParams.picUrl
})
this.picList.push(this.supplierParams.picUrl)
}
this.subSort = 2
} else {
this.subSort = 1