Skip to content

Commit f79175f

Browse files
authored
Feat/2.4.0 beta1 (#1911)
2 parents 23d1cb4 + 6923605 commit f79175f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/frontend/platform/src/pages/BuildPage/bench/LingSiWork.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ export default function index({ formData: parentFormData, setFormData: parentSet
383383
...defaultFormValues.linsightConfig,
384384
...config.linsightConfig,
385385
input_placeholder: config.linsightConfig?.input_placeholder || '',
386-
linsight_entry: config.linsightConfig?.linsight_entry || false,
386+
linsight_entry: config.linsightConfig?.linsight_entry || true,
387387
}
388388
});
389389

src/frontend/platform/src/pages/BuildPage/flow/FlowNode/component/SelectVar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const isMatch = (obj, expression) => {
2727
// 特殊结构提取变量
2828
const getSpecialVar = ({ obj, group, onlyImg = false }) => {
2929
const type = obj.global
30+
3031
switch (type) {
3132
case 'item:form_input':
3233
return obj.value.reduce((res, item) => {
@@ -35,7 +36,7 @@ const getSpecialVar = ({ obj, group, onlyImg = false }) => {
3536
const add = (propKey) => res.push({ label: item[propKey], value: item[propKey] });
3637
// 文本use key
3738
if (['select', 'text'].includes(item.type)) {
38-
add('key')
39+
!onlyImg && add('key')
3940
return res
4041
}
4142
// 1. 优先处理图片 (这是唯一在 onlyImg=true 时可能被添加的项)

0 commit comments

Comments
 (0)