< image style = "width:200rpx;height:240rpx" src = "{{svgPath2}}" ></ image >
< image style = "width:200rpx;height:240rpx" src = "{{svgPath3}}" ></ image >
|
let imageUrl = "cloud://painter-develop-n4tow.7061-painter-develop-n4tow/svg/2.svg"
console.log( "svgPath3:" , imageUrl)
this .setData({
"svgPath3" : imageUrl
})
app.downloadFile(imageUrl, (path) => {
console.log( "svgPath2:" , path)
this .setData({ "svgPath2" : path })
})
|
// console
svgPath3: cloud://painter-develop-n4tow.7061-painter-develop-n4tow/svg/2.svg
svgPath2: http://tmp/wx87853a5d7dbcd591.o6zAJs-VKJBN1zTVUrUwousE3klo.XJi7YkGHNBvm24faf27d644a712fb3c774858724cad8.svg
|
使用svgPath3的image能正常显示,而使用svgPath2的image无法正常显示。
当把imageUrl替换为png图片时,2个image都可正常显示。
麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
https://developers.weixin.qq.com/s/UEiSXLmh7Kaf
编辑器环境 版本1.02.1907300