Commit 43566308 by zhuzhequan

fix:修复podcn图片显示问题

parent aaedfb07
......@@ -5005,10 +5005,20 @@ const openDetail = async (id: number) => {
try {
const res = await getOrderDetailById(id)
if (res.code == 200) {
if (res.data.imageAry) {
res.data.imageAry = JSON.parse(res.data.imageAry as string)
const item = res.data
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
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