fix: 修复设备功能-执行包含object类型时异常
This commit is contained in:
parent
057de400fe
commit
70a1cf2197
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue