@xuda.io/xuda-worker-bundle-min 1.3.2446 → 1.3.2447

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.
Files changed (2) hide show
  1. package/index.js +4 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -627,11 +627,12 @@ func.runtime.render.get_root_data_system = function (SESSION_ID) {
627
627
  func.runtime.render.resolve_xu_for_source = async function (SESSION_ID, dsSessionP, value) {
628
628
  let arr = value;
629
629
  let reference_source_obj;
630
+ const normalized_reference = typeof value === 'string' && value.startsWith('@') ? value.substring(1) : value;
630
631
  const _progFields = await func.datasource.get_progFields(SESSION_ID, dsSessionP);
631
- let view_field_obj = func.common.find_item_by_key(_progFields, 'field_id', value);
632
+ let view_field_obj = func.common.find_item_by_key(_progFields, 'field_id', normalized_reference);
632
633
 
633
- if (view_field_obj) {
634
- reference_source_obj = await func.datasource.get_value(SESSION_ID, value, dsSessionP);
634
+ if (view_field_obj || normalized_reference !== value) {
635
+ reference_source_obj = await func.datasource.get_value(SESSION_ID, normalized_reference, dsSessionP);
635
636
  arr = reference_source_obj?.ret?.value;
636
637
  } else {
637
638
  if (typeof value === 'string') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.2446",
3
+ "version": "1.3.2447",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {