Skip to content

Commit 7d6cacd

Browse files
authored
noInpuptcoutn (#195)
1 parent 5043f7b commit 7d6cacd

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

bizyui/js/image_upload.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,13 @@ function initializeDynamicInputs(node) {
3939
node.inputs = [];
4040
}
4141

42-
// 先检查是否存在 inputcount widget
43-
let inputCountWidget = node.widgets?.find(
44-
(w) => w.name === "inputcount"
45-
);
42+
//VIDU 节点不需要 inputcount 和 Update inputs 按钮
43+
const isVidu = nodeIdentifier === "BizyAir_VIDU_Q3_T2V_API" || nodeIdentifier === "BizyAir_VIDU_Q3_I2V_API";
44+
if (!isVidu) {
45+
// 先检查是否存在 inputcount widget
46+
let inputCountWidget = node.widgets?.find(
47+
(w) => w.name === "inputcount"
48+
);
4649

4750
// 如果不存在,先创建 inputcount widget(在按钮之前创建,确保显示顺序)
4851
if (!inputCountWidget) {
@@ -125,6 +128,7 @@ function initializeDynamicInputs(node) {
125128
}
126129
}
127130
});
131+
}
128132
}
129133
// 添加下拉选择 widget
130134
if (

0 commit comments

Comments
 (0)