diff --git a/src/views/device/Instance/Detail/Function/components/Simple.vue b/src/views/device/Instance/Detail/Function/components/Simple.vue index 7d659d77..e7c8eb57 100644 --- a/src/views/device/Instance/Detail/Function/components/Simple.vue +++ b/src/views/device/Instance/Detail/Function/components/Simple.vue @@ -177,7 +177,7 @@ const newFunctions = computed(() => { required: tableItem.expands?.required }); } - + result.push({ ...func, table: array, @@ -197,7 +197,7 @@ const handleExecute = async (func: any) => { .then(async () => { const obj = {}; func.table.forEach((item: any) => { - if (item.type === 'object') { + if (item.type === 'object' && item.value) { obj[item.id] = JSON.parse(item.value); } else { obj[item.id] = item.value;