From ea79b7d6a16a37f02be275311ff16ad55d92536d Mon Sep 17 00:00:00 2001 From: puhui999 Date: Tue, 13 Jan 2026 11:33:11 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90antd=E3=80=91cropper-moda?= =?UTF-8?q?l=20=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E7=9A=84=20Image=20?= =?UTF-8?q?=E9=A2=84=E5=8A=A0=E8=BD=BD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/components/cropper/cropper-modal.vue | 9 --------- 1 file changed, 9 deletions(-) diff --git a/apps/web-antd/src/components/cropper/cropper-modal.vue b/apps/web-antd/src/components/cropper/cropper-modal.vue index 43e9766dc..d4edd11c9 100644 --- a/apps/web-antd/src/components/cropper/cropper-modal.vue +++ b/apps/web-antd/src/components/cropper/cropper-modal.vue @@ -43,15 +43,6 @@ const [Modal, modalApi] = useVbenModal({ if (isOpen) { // 打开时,进行 loading 加载。后续 CropperImage 组件加载完毕,会自动关闭 loading(通过 handleReady) modalLoading(true); - // TODO @puhui999:这里比 ele 多了,是符合预期的哇? - const img = new Image(); - img.src = src.value; - img.addEventListener('load', () => { - modalLoading(false); - }); - img.addEventListener('error', () => { - modalLoading(false); - }); } else { // 关闭时,清空右侧预览 previewSource.value = '';