diff --git a/CHANGELOG.md b/CHANGELOG.md index df3796a1..94a39f7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,8 @@ - 重新登录 字典会unknown的情况[详细分析](https://gitee.com/dapppp/ruoyi-plus-vben5/issues/IBY27D) - 测试菜单 请假申请 选中删除 需要根据状态判断 - 修复文件/图片在Safari中无法上传 file-type库与Safari不兼容导致 +- 头像裁剪 图片加载失败一直处于loading无法上传 +- 头像裁剪 私有桶会拼接timestamp参数导致sign计算异常无法上传 感谢cropperjs作者 https://github.com/fengyuanchen/cropperjs/issues/1230 **OTHER** diff --git a/apps/web-antd/src/components/cropper/src/cropper.vue b/apps/web-antd/src/components/cropper/src/cropper.vue index 60c438d5..141d2b3f 100644 --- a/apps/web-antd/src/components/cropper/src/cropper.vue +++ b/apps/web-antd/src/components/cropper/src/cropper.vue @@ -33,6 +33,8 @@ const defaultOptions: Options = { autoCrop: true, background: true, center: true, + // 需要设置为false 否则会自动拼接timestamp 导致私有桶sign错误 + // 需要配合img crossorigin='anonymous'使用(默认已经做了处理) checkCrossOrigin: false, checkOrientation: true, cropBoxMovable: true,