-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
uniapp+vue2
iOS真机预览
图片没有跨域也没有被拦截
...
shape = group.addShape('image', {
attrs: {
x: 0 - radius,
y: 0 - radius,
width: radius * 2,
height: radius * 2,
img: cfg.img, // 接口返回的http://.....png地址
},
name: 'avatar-image',
draggable: true,
clipCfg: { // 图片剪裁
show: true,
type: 'circle', // 裁个圆
r: radius // 半径
}
});
return shape
这样无法显示,把图片转成base64才可以,如何解决?
Metadata
Metadata
Assignees
Labels
No labels