fix: 修复设备功能-执行包含object类型时异常
This commit is contained in:
parent
057de400fe
commit
70a1cf2197
|
@ -197,7 +197,7 @@ const handleExecute = async (func: any) => {
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
const obj = {};
|
const obj = {};
|
||||||
func.table.forEach((item: any) => {
|
func.table.forEach((item: any) => {
|
||||||
if (item.type === 'object') {
|
if (item.type === 'object' && item.value) {
|
||||||
obj[item.id] = JSON.parse(item.value);
|
obj[item.id] = JSON.parse(item.value);
|
||||||
} else {
|
} else {
|
||||||
obj[item.id] = item.value;
|
obj[item.id] = item.value;
|
||||||
|
|
Loading…
Reference in New Issue