1、解决‘No data fields’导致后续变量不能正常解析问题

This commit is contained in:
xuhong 2024-06-27 16:26:44 +08:00
parent 6c921a0e9f
commit b5da012622
1 changed files with 14 additions and 15 deletions

View File

@ -323,21 +323,20 @@ export function expandValue(variableCreate: Function, value: string, root: strin
evaluateName = getNamespace(name);
}
// value = value.trim();
// if (value[0] == ',')
// {
// var tmp = value
// tmp = tmp.substr(1).trim();
// tmp = tmp.trim();
// if(tmp[0] == '{' && jsonVar == true){
// tmp = ",anonymous union = " + tmp;
// value = tmp;
// }
// else if(tmp.startsWith("<No data fields>")){
// value = tmp = tmp.substr("<No data fields>".length);
// }
// }
value = value.trim();
if (value[0] == ',')
{
var tmp = value
tmp = tmp.substr(1).trim();
tmp = tmp.trim();
if(tmp[0] == '{' && jsonVar == true){
tmp = ",anonymous union = " + tmp;
value = tmp;
}
else if(tmp.startsWith("<No data fields>")){
value = tmp = tmp.substring("<No data fields>".length);
}
}
return {
name: name,