mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-29 16:12:55 +00:00
feat: enhance condition check for tool initialization parameters in index.vue
This commit is contained in:
parent
1a5db6b5ea
commit
4a6d8c9067
|
|
@ -438,7 +438,7 @@ async function changeState(row: any) {
|
|||
} else {
|
||||
const res = await ToolApi.getToolById(row.id, changeStateloading)
|
||||
if (
|
||||
!res.data.init_params &&
|
||||
(!res.data.init_params || Object.keys(res.data.init_params).length === 0) &&
|
||||
res.data.init_field_list &&
|
||||
res.data.init_field_list.length > 0 &&
|
||||
res.data.init_field_list.filter((item: any) => item.default_value && item.show_default_value)
|
||||
|
|
|
|||
Loading…
Reference in New Issue