Image组件加载保存在本地的svg图片时无法正常显示
[代码]<[代码][代码]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"[代码][代码]// let imageUrl = "cloud://painter-develop-n4tow.7061-painter-develop-n4tow-1259711445/hand.png"[代码][代码]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都可正常显示。