ztxkutils 2.9.3 → 2.9.6

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/dist/request.d.ts CHANGED
@@ -7,4 +7,4 @@ export interface IOptions extends AxiosRequestConfig {
7
7
  encryptionType?: 'aes' | 'des' | boolean;
8
8
  isTimeoutMessage?: boolean;
9
9
  }
10
- export default function request(myOptions: IOptions): any;
10
+ export default function request(myOptions: IOptions, jumpCallback?: any): any;
package/dist/request.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import './tslib.es6-f9459658.js';
2
2
  import 'axios';
3
3
  import 'ztxkui';
4
- export { a as default } from './request-09b081d4.js';
4
+ export { a as default } from './request-9ceb2f4c.js';
5
5
  import './authority-5bc06c1a.js';
6
6
  import './crypto-c481f616.js';
7
7
  import 'crypto';
@@ -14,6 +14,7 @@ var _pushTarget = [
14
14
  '_blank_noframe',
15
15
  '_blank_close',
16
16
  '_blank_nopre',
17
+ '_blank_frame',
17
18
  ];
18
19
  /**
19
20
  * @author 陈亚雄
@@ -51,14 +52,19 @@ function useHistory(routeBasename) {
51
52
  }
52
53
  if (target === '_blank' ||
53
54
  target === '_blank_noframe' ||
54
- target === '_blank_nopre') {
55
+ target === '_blank_nopre' ||
56
+ target === '_blank_frame') {
55
57
  // state 没法处理,请不要传递state,可以拼接再地址栏参数后面
56
58
  // 新窗口打开的页面 都不需要菜单
57
- var _path = path.indexOf('?') === -1
58
- ? path + "?" + WORKFLOW_HIDEFRAME_KEY + "=1"
59
- : path.indexOf(WORKFLOW_HIDEFRAME_KEY) === -1
60
- ? path + "&" + WORKFLOW_HIDEFRAME_KEY + "=1"
61
- : path;
59
+ var _path = path;
60
+ if (target !== '_blank_frame') {
61
+ _path =
62
+ path.indexOf('?') === -1
63
+ ? path + "?" + WORKFLOW_HIDEFRAME_KEY + "=1"
64
+ : path.indexOf(WORKFLOW_HIDEFRAME_KEY) === -1
65
+ ? path + "&" + WORKFLOW_HIDEFRAME_KEY + "=1"
66
+ : path;
67
+ }
62
68
  // 是否是全路径
63
69
  _path = _path.startsWith('http')
64
70
  ? _path
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.9.3",
3
+ "version": "2.9.6",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",