super-page-runtime 2.1.75 → 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.
@@ -378,31 +378,26 @@ function doAfterClickFunc(pageContext, configure, eventParams, isStandardEvent,
378
378
  }
379
379
  }
380
380
  function doClickEvent(pageContext, configure, clickEventFunObj, eventParams) {
381
- const linkPage = configure.props.linkPage;
381
+ let configureObj = configure;
382
+ let linkPage = configure.props.linkPage;
382
383
  if (linkPage && linkPage instanceof Array) {
383
- pageContext.canClick = true;
384
384
  const row = getRowData(eventParams);
385
385
  const result = expressJump(pageContext, configure, linkPage, row);
386
386
  let show = false;
387
387
  let toLinkPage;
388
388
  if (result) {
389
389
  show = result.show;
390
- toLinkPage = result.toPage;
390
+ toLinkPage = show ? result.toPage : null;
391
391
  }
392
- if (show && toLinkPage) {
393
- let configureObj = deepCopy(configure);
394
- configureObj.props.linkPage = toLinkPage.linkPage;
395
- doClickJumpPageEvent(pageContext, configureObj, eventParams);
396
- } else {
397
- ElMessage({
398
- showClose: true,
399
- type: "warning",
400
- message: "没有符合条件的跳转页面"
401
- });
392
+ linkPage = toLinkPage ? toLinkPage.linkPage : null;
393
+ if (linkPage) {
394
+ configureObj = deepCopy(configure);
395
+ configureObj.props.linkPage = linkPage;
402
396
  }
403
- } else if (linkPage && linkPage.jumpPageUrl) {
397
+ }
398
+ if (linkPage && linkPage.jumpPageUrl) {
404
399
  pageContext.canClick = true;
405
- doClickJumpPageEvent(pageContext, configure, eventParams);
400
+ doClickJumpPageEvent(pageContext, configureObj, eventParams);
406
401
  } else {
407
402
  doClickCustomEvent(pageContext, configure, clickEventFunObj, eventParams);
408
403
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.1.75",
3
+ "version": "2.1.79",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",