添加生产导出log, 画布图层工具图层顺序问题
This commit is contained in:
@@ -946,6 +946,14 @@ export class LayerManager {
|
||||
return false;
|
||||
}
|
||||
|
||||
// 检查是否是唯一的普通图层
|
||||
const normalLayers = this.layers.value.filter((l) => !l.isBackground && !l.isFixed);
|
||||
console.log("普通图层:", normalLayers)
|
||||
if (normalLayers.length === 1) {
|
||||
console.warn("不能删除唯一的普通图层");
|
||||
message.warning("不能删除唯一的普通图层");
|
||||
return false;
|
||||
}
|
||||
// // 如果图层有子图层,提示确认
|
||||
// if (layer && layer.children && layer.children.length > 0) {
|
||||
// console.warn("该图层包含子图层,删除将同时删除所有子图层");
|
||||
|
||||
Reference in New Issue
Block a user