fix: enhance init_params check to ensure default values are present in init_field_list
--bug=1054001 --user=刘瑞斌 【函数库】创建时设置了默认启动参数,但依然弹出启动参数弹窗 https://www.tapd.cn/57709429/s/1677100
This commit is contained in:
parent
532ea4941a
commit
8a7e41be61
@ -404,7 +404,11 @@ async function changeState(bool: Boolean, row: any) {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
const res = await functionLibApi.getFunctionLibById(row.id, changeStateloading)
|
const res = await functionLibApi.getFunctionLibById(row.id, changeStateloading)
|
||||||
if (!res.data.init_params && res.data.init_field_list && res.data.init_field_list.length > 0) {
|
if (!res.data.init_params &&
|
||||||
|
res.data.init_field_list &&
|
||||||
|
res.data.init_field_list.length > 0 &&
|
||||||
|
res.data.init_field_list.filter((item: any) => item.default_value).length !== res.data.init_field_list.length
|
||||||
|
) {
|
||||||
InitParamDrawerRef.value.open(res.data, bool)
|
InitParamDrawerRef.value.open(res.data, bool)
|
||||||
row.is_active = false
|
row.is_active = false
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user