Commit 3549c9197031ac299f222070882678636c240655
1 parent
460a7bc4
fix: parmas setting replaceAttrPlaceholder parse Json error
Showing
1 changed file
with
2 additions
and
0 deletions
| @@ -14050,6 +14050,7 @@ class HandleDataInteraction { | @@ -14050,6 +14050,7 @@ class HandleDataInteraction { | ||
| 14050 | } | 14050 | } | 
| 14051 | if (typeof oldValue[key] === 'object') { | 14051 | if (typeof oldValue[key] === 'object') { | 
| 14052 | newValue[key] = replaceAttrPlaceholder(oldValue[key], replaceAttr, replaceValue) | 14052 | newValue[key] = replaceAttrPlaceholder(oldValue[key], replaceAttr, replaceValue) | 
| 14053 | + continue | ||
| 14053 | } | 14054 | } | 
| 14054 | newValue[key] = oldValue[key] | 14055 | newValue[key] = oldValue[key] | 
| 14055 | } | 14056 | } | 
| @@ -14066,6 +14067,7 @@ class HandleDataInteraction { | @@ -14066,6 +14067,7 @@ class HandleDataInteraction { | ||
| 14066 | if (!validate.every(Boolean)) return | 14067 | if (!validate.every(Boolean)) return | 
| 14067 | if (typeof command === 'string') command = jsonParse(command) | 14068 | if (typeof command === 'string') command = jsonParse(command) | 
| 14068 | const data = replaceAttrPlaceholder(command, attr, value) | 14069 | const data = replaceAttrPlaceholder(command, attr, value) | 
| 14070 | + console.log(data) | ||
| 14069 | const instructionData = { | 14071 | const instructionData = { | 
| 14070 | method: "methodThingskit", | 14072 | method: "methodThingskit", | 
| 14071 | params: data, | 14073 | params: data, |