From 2d15fbda11a8a64f0f3b35b759a705796d80fa0b Mon Sep 17 00:00:00 2001 From: zhangyh Date: Thu, 25 Sep 2025 13:25:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=8E=E8=AE=BE=E8=AE=A1=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E7=82=B9=E7=BC=96=E8=BE=91=E6=8C=89=E9=92=AE=E8=BF=9B?= =?UTF-8?q?=E5=85=A5=20canvas=E6=97=B6=E7=9A=84=E4=BB=8ELibrary=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/Canvas/CanvasEditor/index.vue | 8 ++++++-- src/component/Detail/canvas/index.vue | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/component/Canvas/CanvasEditor/index.vue b/src/component/Canvas/CanvasEditor/index.vue index 8893b257..b2e5a53d 100644 --- a/src/component/Canvas/CanvasEditor/index.vue +++ b/src/component/Canvas/CanvasEditor/index.vue @@ -108,6 +108,10 @@ const props = defineProps({ isGeneral: { // 从generalMiniCanvas来的 type: Boolean, default:false + }, + isEdit: { // 从design点击喜欢过的图片,再点击顶部的编辑图标 + type: Boolean, + default: false } }); @@ -720,8 +724,8 @@ const handleImageSelect = (data) => { }) } function triggerLibrary() { - console.log('打开收藏') - if (props.isGeneral) { + // console.log('CanvasEditor', '打开收藏') + if (props.isGeneral || props.isEdit) { selectImages.value.init() } else { emit("trigger-library"); diff --git a/src/component/Detail/canvas/index.vue b/src/component/Detail/canvas/index.vue index 44cc1bbc..3b53ff1f 100644 --- a/src/component/Detail/canvas/index.vue +++ b/src/component/Detail/canvas/index.vue @@ -9,6 +9,7 @@ { let front = detailData.frontBack.front[detailData.imgDomIndex] let back = detailData.frontBack.back[detailData.imgDomIndex]