Commit 43566308 by zhuzhequan

fix:修复podcn图片显示问题

parent aaedfb07
...@@ -5005,10 +5005,20 @@ const openDetail = async (id: number) => { ...@@ -5005,10 +5005,20 @@ const openDetail = async (id: number) => {
try { try {
const res = await getOrderDetailById(id) const res = await getOrderDetailById(id)
if (res.code == 200) { if (res.code == 200) {
if (res.data.imageAry) { const item = res.data
res.data.imageAry = JSON.parse(res.data.imageAry as string) if(item.imageAry){
if(item.imageAry.startsWith('http')){
item.imageAry = JSON.stringify(item.imageAry.split(',').map(e=>{
return {
url:e
}
}))
}
}
if (item.imageAry) {
item.imageAry = JSON.parse(item.imageAry as string)
} }
detailData.value = res.data || {} detailData.value = item || {}
detailVisible.value = true detailVisible.value = true
fastKey.value = 'detail' fastKey.value = 'detail'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment