fix: 贴片模板显示逻辑改为按节点实例patchLayout开关判断
- currentWorkflowHasPatchLayout 改为检查节点实例的 patchLayout 字段 - InputBar 工作流对接真实接口,禁用技能选择 - home/index.vue 移除 mock 数据,工作空间对接真实接口 - 工作空间增加预览/下载/删除功能
This commit is contained in:
@@ -1098,21 +1098,10 @@ const currentNodePatchLayout = computed(() => {
|
||||
});
|
||||
return patchLayout;
|
||||
});
|
||||
// 判断当前工作流是否包含支持贴片布局的节点
|
||||
// 判断当前工作流是否包含开启了贴片布局的节点
|
||||
const currentWorkflowHasPatchLayout = computed(() => {
|
||||
const nodes = currentWorkflowForCreation.value?.nodeInputParams || [];
|
||||
if (!nodes.length || !nodeLibraryGroups.value.length) return false;
|
||||
return nodes.some((node: any) => {
|
||||
if (!node.nodeCode) return false;
|
||||
for (const group of nodeLibraryGroups.value) {
|
||||
for (const item of group.items || []) {
|
||||
if (item.nodeCode === node.nodeCode && item.patchLayout) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
});
|
||||
return nodes.some((node: any) => node.patchLayout === true);
|
||||
});
|
||||
// 获取当前节点的模型类型
|
||||
const currentNodeModelType = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user