ztxkutils 2.10.29 → 2.10.31

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 { c as authority } from './authority-e6bde99f.js';
2
2
  export { d as dataModel } from './dataModel-1fbaff40.js';
3
3
  export { t as tools } from './tools-09a4d620.js';
4
4
  export { v as validate } from './validate-6e735536.js';
5
- export { r as request } from './request-944adae3.js';
5
+ export { r as request } from './request-ef290b9a.js';
6
6
  export { r as reqUrl } from './reqUrl-787dd9e5.js';
7
7
  import './tslib.es6-35653116.js';
8
8
  import 'dayjs';
@@ -2584,7 +2584,7 @@ function setInterceptorsResponse(jumpCallback, otherOptions) {
2584
2584
  return Promise.reject(response);
2585
2585
  }
2586
2586
  }, function (error) {
2587
- var _a, _b;
2587
+ var _a, _b, _c, _d, _e;
2588
2588
  // catchPromiseObj = [];
2589
2589
  console.error(error);
2590
2590
  var errRes = error === null || error === void 0 ? void 0 : error.response;
@@ -2610,7 +2610,7 @@ function setInterceptorsResponse(jumpCallback, otherOptions) {
2610
2610
  __isTimeoutMessage) {
2611
2611
  isMessage = true;
2612
2612
  Modal.confirm({
2613
- title: '请求超时,请稍后再试,请去列表确认数据是否插入成功,请勿重复提交!',
2613
+ title: "\u8BF7\u6C42\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF0C\u8BF7\u53BB\u5217\u8868\u786E\u8BA4\u6570\u636E\u662F\u5426\u63D2\u5165\u6210\u529F\uFF0C\u8BF7\u52FF\u91CD\u590D\u63D0\u4EA4\uFF01\n\u63A5\u53E3\u5730\u5740:" + ((_c = error === null || error === void 0 ? void 0 : error.config) === null || _c === void 0 ? void 0 : _c.url) + "\n\u8BF7\u6C42\u65B9\u5F0F:" + ((_d = error === null || error === void 0 ? void 0 : error.config) === null || _d === void 0 ? void 0 : _d.method) + "\n\u8BF7\u6C42\u8D85\u65F6\u65F6\u95F4:" + ((_e = error === null || error === void 0 ? void 0 : error.config) === null || _e === void 0 ? void 0 : _e.timeout),
2614
2614
  okCancel: false,
2615
2615
  onOk: function () {
2616
2616
  isMessage = false;
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, c as clearCatch, a as default } from './request-944adae3.js';
4
+ export { N as NEW_AUTHORIZATION, O as OLD_AUTHORIZATION, c as clearCatch, a as default } from './request-ef290b9a.js';
5
5
  import './authority-e6bde99f.js';
6
6
  import './crypto-c481f616.js';
7
7
  import 'crypto';
@@ -251,11 +251,39 @@ var StompClient = /** @class */ (function () {
251
251
  try {
252
252
  _this.client.disconnect(function () {
253
253
  _this.client = null;
254
+ setTimeout(function () {
255
+ if (_this.clearIsClient) {
256
+ clearTimeout(_this.clearIsClient);
257
+ _this.clearIsClient = null;
258
+ }
259
+ if (_this.clearIsClientNo) {
260
+ clearTimeout(_this.clearIsClientNo);
261
+ _this.clearIsClientNo = null;
262
+ }
263
+ if (_this.clearIsClientYes) {
264
+ clearTimeout(_this.clearIsClientYes);
265
+ _this.clearIsClientYes = null;
266
+ }
267
+ }, 300);
254
268
  callback && callback();
255
269
  resolve(null);
256
270
  });
257
271
  }
258
272
  catch (err) {
273
+ setTimeout(function () {
274
+ if (_this.clearIsClient) {
275
+ clearTimeout(_this.clearIsClient);
276
+ _this.clearIsClient = null;
277
+ }
278
+ if (_this.clearIsClientNo) {
279
+ clearTimeout(_this.clearIsClientNo);
280
+ _this.clearIsClientNo = null;
281
+ }
282
+ if (_this.clearIsClientYes) {
283
+ clearTimeout(_this.clearIsClientYes);
284
+ _this.clearIsClientYes = null;
285
+ }
286
+ }, 300);
259
287
  callback && callback();
260
288
  resolve(null);
261
289
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.10.29",
3
+ "version": "2.10.31",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",