From 21fb9c8c99b5d09adaeb5d64057497efcdc0f9d5 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Sat, 5 Apr 2025 17:12:26 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=A4=B4=E5=83=8F=E8=A3=81=E5=89=AA=20?= =?UTF-8?q?=E7=A7=81=E6=9C=89=E6=A1=B6=E4=BC=9A=E6=8B=BC=E6=8E=A5timestamp?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=AF=BC=E8=87=B4sign=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E6=97=A0=E6=B3=95=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 ++ apps/web-antd/src/components/cropper/src/cropper.vue | 2 ++ 2 files changed, 4 insertions(+) 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,