centaline-data-driven 1.4.1 → 1.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "ccai",
5
5
  "author": "hjc <3226136347@qq.com>",
6
6
  "private": false,
@@ -487,13 +487,21 @@
487
487
  }
488
488
  else{
489
489
  if (field.action.indexOf("http://") === 0 || field.action.indexOf("https://") === 0) {
490
- window.open(field.action, "_blank");
490
+ var tempwindow=window.open('about:blank');
491
+ tempwindow.location=field.action;
492
+ // document.body.addEventListener('click', function() {
493
+ // window.open(field.action, "_blank");
494
+ // });
491
495
  }
492
496
  else {
493
497
  field.doAction(submitData, (data) => {
494
498
  if(data.content){
495
499
  if (data.content.indexOf("http://") === 0 || data.content.indexOf("https://") === 0) {
496
- window.open(data.content, "_blank");
500
+ var tempwindow=window.open('about:blank');
501
+ tempwindow.location=data.content;
502
+ // document.body.addEventListener('click', function() {
503
+ // window.open(data.content, "_blank");
504
+ // });
497
505
  }
498
506
  else {
499
507
  }