fix: 从设计详情点编辑按钮进入 canvas时的从Library选择图片

This commit is contained in:
zhangyh
2025-09-25 13:25:30 +08:00
parent 7b49f61cc8
commit 2d15fbda11
2 changed files with 9 additions and 2 deletions

View File

@@ -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");