super-page-runtime 2.1.77 → 2.1.79

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.
@@ -4,7 +4,7 @@ import { validateDataModelFunc } from "./validator-util.js";
4
4
  import { getComponentRef, getComponentRefByCode } from "../global-refs.js";
5
5
  import { ElMessage } from "element-plus";
6
6
  import { analysisCondition } from "agilebuilder-ui/src/utils/util";
7
- import { getListCode } from "../common-util.js";
7
+ import { getListCode, deepCopy } from "../common-util.js";
8
8
  import eventBus from "../eventBus.js";
9
9
  import { getValueFromSource } from "../page-helper-util.js";
10
10
  import { expressJump } from "../table-utils.js";
@@ -378,6 +378,7 @@ function doAfterClickFunc(pageContext, configure, eventParams, isStandardEvent,
378
378
  }
379
379
  }
380
380
  function doClickEvent(pageContext, configure, clickEventFunObj, eventParams) {
381
+ let configureObj = configure;
381
382
  let linkPage = configure.props.linkPage;
382
383
  if (linkPage && linkPage instanceof Array) {
383
384
  const row = getRowData(eventParams);
@@ -388,11 +389,15 @@ function doClickEvent(pageContext, configure, clickEventFunObj, eventParams) {
388
389
  show = result.show;
389
390
  toLinkPage = show ? result.toPage : null;
390
391
  }
391
- linkPage = toLinkPage;
392
+ linkPage = toLinkPage ? toLinkPage.linkPage : null;
393
+ if (linkPage) {
394
+ configureObj = deepCopy(configure);
395
+ configureObj.props.linkPage = linkPage;
396
+ }
392
397
  }
393
398
  if (linkPage && linkPage.jumpPageUrl) {
394
399
  pageContext.canClick = true;
395
- doClickJumpPageEvent(pageContext, configure, eventParams);
400
+ doClickJumpPageEvent(pageContext, configureObj, eventParams);
396
401
  } else {
397
402
  doClickCustomEvent(pageContext, configure, clickEventFunObj, eventParams);
398
403
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.1.77",
3
+ "version": "2.1.79",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",