ztxkutils 2.10.57 → 2.10.58
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/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { d as authority } from './authority-7a91cb9f.js';
|
|
|
2
2
|
export { d as dataModel } from './dataModel-1fbaff40.js';
|
|
3
3
|
export { t as tools } from './tools-16a7fb45.js';
|
|
4
4
|
export { v as validate } from './validate-18e52490.js';
|
|
5
|
-
export { r as request } from './request-
|
|
5
|
+
export { r as request } from './request-29139e7e.js';
|
|
6
6
|
export { r as reqUrl } from './reqUrl-3792afcd.js';
|
|
7
7
|
import './tslib.es6-35653116.js';
|
|
8
8
|
import 'dayjs';
|
|
@@ -2807,9 +2807,9 @@ function request(myOptions, jumpCallback, otherOptions) {
|
|
|
2807
2807
|
// 将传入配置与默认配置混合
|
|
2808
2808
|
var newOptions = __assign(__assign(__assign({}, defaultOptions), options), { headers: __assign(__assign({}, defaultOptions.headers), options.headers) });
|
|
2809
2809
|
// 湘钢国贸项目 除了登录接口外 去掉 Authorization认证头部
|
|
2810
|
-
if (newOptions.url !== '/api/zmdms-auth/oauth/token') {
|
|
2811
|
-
|
|
2812
|
-
}
|
|
2810
|
+
// if (newOptions.url !== '/api/zmdms-auth/oauth/token') {
|
|
2811
|
+
// delete newOptions.headers.Authorization;
|
|
2812
|
+
// }
|
|
2813
2813
|
// 特殊请求处理
|
|
2814
2814
|
if (((_e = newOptions.method) === null || _e === void 0 ? void 0 : _e.toUpperCase()) === 'POST' ||
|
|
2815
2815
|
((_f = newOptions.method) === null || _f === void 0 ? void 0 : _f.toUpperCase()) === 'PUT' ||
|
package/dist/request.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './tslib.es6-35653116.js';
|
|
2
2
|
import 'axios';
|
|
3
3
|
import 'ztxkui';
|
|
4
|
-
export { N as NEW_AUTHORIZATION, O as OLD_AUTHORIZATION, b as clearCatch, c as clearNoCompleteRequest, a as default } from './request-
|
|
4
|
+
export { N as NEW_AUTHORIZATION, O as OLD_AUTHORIZATION, b as clearCatch, c as clearNoCompleteRequest, a as default } from './request-29139e7e.js';
|
|
5
5
|
import './authority-7a91cb9f.js';
|
|
6
6
|
import './crypto-c481f616.js';
|
|
7
7
|
import 'crypto';
|