-
Notifications
You must be signed in to change notification settings - Fork 708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vue3使用阿里云oss存储的外链图片,在裁剪框内不显示,但是百度上的外链图片可以显示,请问大佬这是什么原因 #856
Comments
可能是跨域了,需要在阿里云能配置下 |
如果用img标签src引入图片,是可以显示图片的。后面考虑到跨域这个问题,让后端放开了跨域,但是还是不显示 |
我把阿里云的图片外链放到您的demo的案例里面,是可以正常显示的 |
img标签和canvas截图是不一样的,要看看具体报错 |
没有报错,然后我再交流群里说明了问题,期待您的回复,谢谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<VueCropper ref="cropperRef" :img="showUrl" canScale :outputSize="option.size" :outputType="option.outputType" :autoCrop="option.autoCrop" :fixedBox="true" :autoCropWidth="currentImageObj.width" :autoCropHeight="currentImageObj.height" :full="option.full" @realTime="realTime" @imgMoving="imgMoving" @cropMoving="cropMoving" > </VueCropper>
showUrl数据为阿里云oss存储的外链图片地址:
const showUrl = ref('https://likein-test.oss-cn-beijing.aliyuncs.com/e73cdb560467435589eae9a154c5827e.png')
求大佬指导。
The text was updated successfully, but these errors were encountered: