ztxkutils 2.9.6 → 2.9.7

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.
@@ -15,6 +15,7 @@ var _pushTarget = [
15
15
  '_blank_close',
16
16
  '_blank_nopre',
17
17
  '_blank_frame',
18
+ '_blank_frame_nopre',
18
19
  ];
19
20
  /**
20
21
  * @author 陈亚雄
@@ -53,11 +54,12 @@ function useHistory(routeBasename) {
53
54
  if (target === '_blank' ||
54
55
  target === '_blank_noframe' ||
55
56
  target === '_blank_nopre' ||
56
- target === '_blank_frame') {
57
+ target === '_blank_frame' ||
58
+ target === '_blank_frame_nopre') {
57
59
  // state 没法处理,请不要传递state,可以拼接再地址栏参数后面
58
60
  // 新窗口打开的页面 都不需要菜单
59
61
  var _path = path;
60
- if (target !== '_blank_frame') {
62
+ if (target !== '_blank_frame' && target !== '_blank_frame_nopre') {
61
63
  _path =
62
64
  path.indexOf('?') === -1
63
65
  ? path + "?" + WORKFLOW_HIDEFRAME_KEY + "=1"
@@ -72,7 +74,9 @@ function useHistory(routeBasename) {
72
74
  ? _path
73
75
  : "/" + _path;
74
76
  // 如果在微前端里面,需要添加前缀
75
- if (isQiankun() && target !== '_blank_nopre') {
77
+ if (isQiankun() &&
78
+ target !== '_blank_nopre' &&
79
+ target !== '_blank_frame_nopre') {
76
80
  _path = _path.startsWith('http')
77
81
  ? _path
78
82
  : routeBasename
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.9.6",
3
+ "version": "2.9.7",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",