Skip to content

Commit

Permalink
feat:事件-发送数据-getDynamicParam
Browse files Browse the repository at this point in the history
  • Loading branch information
ananzhusen committed Nov 11, 2024
1 parent 714d1ee commit bbef87a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ export class Meta2d {
}else if(typeof item.value[key]=== 'string' && item.value[key]?.indexOf('${') > -1){
let keys = item.value[key].match(/(?<=\$\{).*?(?=\})/g);
if(keys?.length){
list[index].properties[key] = _pen[keys[0]]
list[index].properties[key] = _pen[keys[0]]??this.getDynamicParam(keys[0]);
}
}else{
list[index].properties[key] = item.value[key];
Expand Down Expand Up @@ -530,7 +530,7 @@ export class Meta2d {
}else if(typeof item.value[key]=== 'string' && item.value[key]?.indexOf('${') > -1){
let keys = item.value[key].match(/(?<=\$\{).*?(?=\})/g);
if(keys?.length){
value[key] = _pen[keys[0]]
value[key] = _pen[keys[0]]??this.getDynamicParam(keys[0]);
}
}else{
value[key] = item.value[key];
Expand All @@ -554,7 +554,7 @@ export class Meta2d {
}else if(typeof value[key]=== 'string' && value[key]?.indexOf('${') > -1){
let keys = value[key].match(/(?<=\$\{).*?(?=\})/g);
if(keys?.length){
value[key] = _pen[keys[0]]
value[key] = _pen[keys[0]]??this.getDynamicParam(keys[0]);
}
}
}
Expand Down

0 comments on commit bbef87a

Please sign in to comment.