fix: 从设计详情点编辑按钮进入 canvas时的从Library选择图片
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user