Skip to content

Commit d77886b

Browse files
committed
refactor: conditionally render dropdown item based on init_field_list length
--bug=1054160 --user=刘瑞斌 【函数库】没有启用参数的函数,不展示启动参数按钮 https://www.tapd.cn/57709429/s/1678874
1 parent 4b9cecd commit d77886b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/src/views/function-lib/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
{{ $t('common.copy') }}
185185
</el-dropdown-item>
186186
<el-dropdown-item
187+
v-if="item.init_field_list?.length > 0"
187188
:disabled="item.permission_type === 'PUBLIC' && !canEdit(item)"
188189
@click.stop="configInitParams(item)"
189190
>

0 commit comments

Comments
 (0)