ztxkutils 2.8.10 → 2.8.11

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/dist/useHistory.js +10 -3
  2. package/package.json +1 -1
@@ -6,7 +6,12 @@ import { WORKFLOW_HIDEFRAME_KEY } from './constants.js';
6
6
 
7
7
  var ROUTER_FILTER_RULES_KEY = '__symbol__alias__session';
8
8
  var ROUTER_FILTER_RULES_VALUE = 'zQzNDkwNjg2MjYwMjI4MDk3LDEzNDU5Nzg1';
9
- var _pushTarget = ['_blank', '_blank_noframe', '_blank_close'];
9
+ var _pushTarget = [
10
+ '_blank',
11
+ '_blank_noframe',
12
+ '_blank_close',
13
+ '_blank_nopre',
14
+ ];
10
15
  /**
11
16
  * @author 陈亚雄
12
17
  * @description 代理路由的push方法,可以用window.open的方式跳转页面
@@ -39,7 +44,9 @@ function useHistory(routeBasename) {
39
44
  history.push(path, state);
40
45
  return;
41
46
  }
42
- if (target === '_blank' || target === '_blank_noframe') {
47
+ if (target === '_blank' ||
48
+ target === '_blank_noframe' ||
49
+ target === '_blank_nopre') {
43
50
  // state 没法处理,请不要传递state,可以拼接再地址栏参数后面
44
51
  // 新窗口打开的页面 都不需要菜单
45
52
  var _path = path.indexOf('?') === -1
@@ -54,7 +61,7 @@ function useHistory(routeBasename) {
54
61
  ? _path
55
62
  : "/" + _path;
56
63
  // 如果在微前端里面,需要添加前缀
57
- if (isQiankun()) {
64
+ if (isQiankun() && target !== '_blank_nopre') {
58
65
  _path = _path.startsWith('http')
59
66
  ? _path
60
67
  : routeBasename
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.8.10",
3
+ "version": "2.8.11",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",