@meta2d/core 1.0.81 → 1.0.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/core.js CHANGED
@@ -234,7 +234,7 @@ export class Meta2d {
234
234
  let keys = url.match(/\$\{([^}]+)\}/g)?.map(m => m.slice(2, -1));
235
235
  if (keys) {
236
236
  keys?.forEach((key) => {
237
- url = url.replace(`\${${key}}`, pen[key]);
237
+ url = url.replace(`\${${key}}`, pen[key] || this.getDynamicParam(key));
238
238
  });
239
239
  }
240
240
  }
@@ -434,7 +434,7 @@ export class Meta2d {
434
434
  let keys = e.params.match(/\$\{([^}]+)\}/g)?.map(m => m.slice(2, -1));
435
435
  if (keys) {
436
436
  keys?.forEach((key) => {
437
- url = url.replace(`\${${key}}`, pen[key]);
437
+ url = url.replace(`\${${key}}`, pen[key] || this.getDynamicParam(key));
438
438
  });
439
439
  }
440
440
  }