This commit is contained in:
yanran200730
2023-04-12 09:55:09 +08:00
parent ef91ed6254
commit 2cdfa358eb

View File

@@ -61,9 +61,19 @@
this.instance.post(`/app/appcontentinfo/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
this.info = res.data
this.info.pictureUrl = res.data.pictureUrl ? [{
url: res.data.pictureUrl
}] : []
this
this.info = {
...res.data,
pictureUrl: res.data.pictureUrl ? [{
url: res.data.pictureUrl
}] : [],
files: res.data.files.map(v => {
return {
...v,
postfix: v.postfix.toLowerCase()
}
})
}
}
})
},