eoss-ui 0.5.10 → 0.5.12

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 (77) hide show
  1. package/lib/button-group.js +246 -157
  2. package/lib/button.js +185 -108
  3. package/lib/card.js +2 -2
  4. package/lib/cascader.js +2 -2
  5. package/lib/checkbox-group.js +184 -108
  6. package/lib/clients.js +2 -2
  7. package/lib/data-table-form.js +183 -107
  8. package/lib/data-table.js +216 -131
  9. package/lib/date-picker.js +190 -113
  10. package/lib/dialog.js +192 -116
  11. package/lib/enterprise.js +2 -2
  12. package/lib/eoss-ui.common.js +506 -642
  13. package/lib/error-page.js +2 -2
  14. package/lib/flow-group.js +183 -106
  15. package/lib/flow-list.js +218 -116
  16. package/lib/flow.js +218 -125
  17. package/lib/form.js +308 -323
  18. package/lib/handle-user.js +186 -109
  19. package/lib/handler.js +184 -107
  20. package/lib/icons.js +4 -4
  21. package/lib/index.js +1 -1
  22. package/lib/input-number.js +185 -108
  23. package/lib/input.js +187 -110
  24. package/lib/label.js +2 -2
  25. package/lib/layout.js +4 -4
  26. package/lib/login.js +186 -110
  27. package/lib/main.js +311 -385
  28. package/lib/menu.js +2 -2
  29. package/lib/nav.js +185 -108
  30. package/lib/notify.js +2 -2
  31. package/lib/page.js +185 -108
  32. package/lib/pagination.js +2 -2
  33. package/lib/player.js +191 -114
  34. package/lib/qr-code.js +187 -110
  35. package/lib/radio-group.js +188 -111
  36. package/lib/retrial-auth.js +185 -108
  37. package/lib/select-ganged.js +183 -106
  38. package/lib/select.js +184 -107
  39. package/lib/selector-panel.js +184 -108
  40. package/lib/selector.js +185 -108
  41. package/lib/sizer.js +187 -110
  42. package/lib/steps.js +185 -108
  43. package/lib/switch.js +185 -108
  44. package/lib/table-form.js +197 -136
  45. package/lib/tabs-panel.js +2 -2
  46. package/lib/tabs.js +188 -111
  47. package/lib/theme-chalk/index.css +1 -1
  48. package/lib/theme-chalk/pagination.css +1 -1
  49. package/lib/theme-chalk/toolbar.css +1 -1
  50. package/lib/tips.js +185 -108
  51. package/lib/toolbar.js +21 -11
  52. package/lib/tree-group.js +183 -106
  53. package/lib/tree.js +183 -106
  54. package/lib/upload.js +186 -110
  55. package/lib/utils/util.js +35 -94
  56. package/lib/utils/webSocket.js +134 -0
  57. package/lib/wujie.js +185 -108
  58. package/lib/wxlogin.js +185 -108
  59. package/package.json +1 -1
  60. package/packages/data-table/src/main.vue +16 -8
  61. package/packages/data-table/src/sizer.vue +1 -1
  62. package/packages/flow/src/main.vue +2 -0
  63. package/packages/flow/src/processForm.vue +23 -9
  64. package/packages/flow-list/src/main.vue +25 -2
  65. package/packages/form/src/main.vue +11 -46
  66. package/packages/form/src/table.vue +6 -11
  67. package/packages/main/src/main.vue +25 -164
  68. package/packages/radio-group/src/main.vue +1 -5
  69. package/packages/theme-chalk/lib/index.css +1 -1
  70. package/packages/theme-chalk/lib/pagination.css +1 -1
  71. package/packages/theme-chalk/lib/toolbar.css +1 -1
  72. package/packages/theme-chalk/src/pagination.scss +8 -0
  73. package/packages/theme-chalk/src/toolbar.scss +1 -0
  74. package/packages/toolbar/src/main.vue +17 -8
  75. package/src/index.js +1 -1
  76. package/src/utils/util.js +58 -115
  77. package/src/utils/webSocket.js +103 -0
@@ -82,12 +82,11 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 35);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 36);
86
86
  /******/ })
87
87
  /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ 0:
88
+ /******/ ([
89
+ /* 0 */
91
90
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
91
 
93
92
  "use strict";
@@ -98,14 +97,9 @@ module.exports =
98
97
  /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_2__);
99
98
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
100
99
  /* harmony import */ var json_bigint__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(json_bigint__WEBPACK_IMPORTED_MODULE_3__);
101
- /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
102
- /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_4__);
103
- /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8);
104
- /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_5__);
105
- /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2);
106
- /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_6__);
107
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
108
-
100
+ /* harmony import */ var _webSocket__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
101
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2);
102
+ /* harmony import */ var eoss_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(eoss_element__WEBPACK_IMPORTED_MODULE_5__);
109
103
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
110
104
 
111
105
  /**
@@ -116,8 +110,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
116
110
  **/
117
111
 
118
112
  /* eslint-disable indent */
119
- var sm2 = __webpack_require__(9).sm2;
120
-
113
+ var sm2 = __webpack_require__(10).sm2;
121
114
 
122
115
 
123
116
 
@@ -265,7 +258,7 @@ var ajax = function ajax(_ref) {
265
258
  clearTimeout(loginMsg);
266
259
  loginMsg = setTimeout(function () {
267
260
  sessionStorage.setItem('remind', 1);
268
- eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
261
+ eoss_element__WEBPACK_IMPORTED_MODULE_5__["MessageBox"].confirm(response.data.rCode === 69 ? '该账号在其他地方已登陆!' : '登录已过期,请重新登录!', '提示', response.data.rCode === 69 ? {
269
262
  confirmButtonText: '确定',
270
263
  closeOnClickModal: false,
271
264
  type: 'warning'
@@ -312,7 +305,7 @@ var ajax = function ajax(_ref) {
312
305
  } else if (response.data.rCode === 61) {
313
306
  clearTimeout(initAuth);
314
307
  initAuth = setTimeout(function () {
315
- Object(eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"])({
308
+ Object(eoss_element__WEBPACK_IMPORTED_MODULE_5__["MessageBox"])({
316
309
  title: '请进行二次鉴权',
317
310
  closeOnClickModal: false,
318
311
  closeOnPressEscape: false,
@@ -746,6 +739,7 @@ var delUrlParam = function delUrlParam(_ref2) {
746
739
  key.forEach(function (item) {
747
740
  if (param.hasOwnProperty(item)) {
748
741
  var reg = item + '=' + param[item];
742
+ console.log(reg);
749
743
  if (src.indexOf(reg + '&') > -1) {
750
744
  src = src.replace(reg + '&', '');
751
745
  } else if (src.indexOf('&' + reg) > -1) {
@@ -1946,7 +1940,6 @@ var isLogined = function isLogined(_ref8) {
1946
1940
  next = _ref8.next,
1947
1941
  _ref8$exclude = _ref8.exclude,
1948
1942
  exclude = _ref8$exclude === undefined ? [] : _ref8$exclude,
1949
- open = _ref8.open,
1950
1943
  cookie = _ref8.cookie,
1951
1944
  loginPage = _ref8.loginPage,
1952
1945
  redirect = _ref8.redirect;
@@ -1954,24 +1947,24 @@ var isLogined = function isLogined(_ref8) {
1954
1947
  if (cookie === undefined) {
1955
1948
  cookie = getParams({ name: 'cookie' });
1956
1949
  }
1950
+ var pathname = win.top.location.pathname;
1957
1951
  if (loginPage) {
1958
1952
  sessionStorage.setItem('loginPage', loginPage);
1959
1953
  if (!startWith(loginPage, ['http', '/'], true)) {
1960
- var pathname = win.top.location.pathname;
1961
1954
  if (pathname !== '/') {
1962
- pathname = pathname.split('/');
1963
- pathname.splice(pathname.length - 1);
1964
- pathname = pathname.join('/');
1965
- loginPage = pathname + '/' + loginPage.replace('./', '');
1955
+ var path = pathname.split('/');
1956
+ path.splice(pathname.length - 1);
1957
+ path = path.join('/');
1958
+ loginPage = path + '/' + loginPage.replace('./', '');
1966
1959
  } else {
1967
1960
  loginPage = pathname + loginPage.replace('./', '');
1968
1961
  }
1969
1962
  }
1970
1963
  }
1971
1964
  var token = getStorage('token') || getStorage('Authorization');
1972
- var logined = getStorage('logined');
1965
+ // const logined = getStorage('logined');
1973
1966
  // eslint-disable-next-line eqeqeq
1974
- if (token || logined || cookie == true || cookie == 1) {
1967
+ if (token || cookie == true || cookie == 1) {
1975
1968
  next && next();
1976
1969
  } else {
1977
1970
  if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
@@ -1995,40 +1988,25 @@ var isLogined = function isLogined(_ref8) {
1995
1988
  deviceUnique: results.deviceUnique
1996
1989
  }
1997
1990
  });
1998
- next();
1991
+ var url = delUrlParam({
1992
+ url: win.top.location.href,
1993
+ key: ['serverId', 'authType', 'code', 'sessionId']
1994
+ });
1995
+ win.top.location.href = url;
1996
+ setTimeout(function () {
1997
+ win.top.location.reload();
1998
+ }, 200);
1999
1999
  break;
2000
2000
  case 1:
2001
2001
  break;
2002
2002
  case 2:
2003
2003
  break;
2004
2004
  case 3:
2005
- var url = win.top.location.href;
2006
- var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(url));
2007
- if (to.query.openType) {
2008
- switch (to.query.openType) {
2009
- case 'self':
2010
- win.location.href = href;
2011
- break;
2012
- case 'blank':
2013
- win.open(href);
2014
- break;
2015
- case 'top':
2016
- win.top.location.href = href;
2017
- break;
2018
- case 'parent':
2019
- win.parent.location.href = href;
2020
- break;
2021
- }
2022
- } else {
2023
- if (open) {
2024
- win.open(href);
2025
- } else {
2026
- win.top.location.href = href;
2027
- }
2028
- }
2005
+ var href = results.authorizeUrl.replace('{redirectUri}', encodeURIComponent(win.top.location.href));
2006
+ win.top.location.href = href;
2029
2007
  break;
2030
2008
  case 4:
2031
- eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
2009
+ eoss_element__WEBPACK_IMPORTED_MODULE_5__["MessageBox"].alert(results.msg ? results.msg : '账号未绑定,账号密码登录后自动绑定!', '提示', {
2032
2010
  confirmButtonText: '确定',
2033
2011
  type: 'error',
2034
2012
  callback: function callback() {
@@ -2048,7 +2026,7 @@ var isLogined = function isLogined(_ref8) {
2048
2026
  default:
2049
2027
  }
2050
2028
  } else {
2051
- eoss_element__WEBPACK_IMPORTED_MODULE_6__["MessageBox"].alert(res.msg, '提示', {
2029
+ eoss_element__WEBPACK_IMPORTED_MODULE_5__["MessageBox"].alert(res.msg, '提示', {
2052
2030
  confirmButtonText: '确定',
2053
2031
  type: 'error',
2054
2032
  callback: function callback() {
@@ -2179,7 +2157,7 @@ var loadJs = function loadJs(_ref10) {
2179
2157
  **/
2180
2158
  var loading = function loading($loading, res) {
2181
2159
  if (!$loading) {
2182
- $loading = eoss_element__WEBPACK_IMPORTED_MODULE_6__["Loading"].service;
2160
+ $loading = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service;
2183
2161
  }
2184
2162
  if (isObject(res)) {
2185
2163
  var config = extend({}, {
@@ -2544,63 +2522,25 @@ var setStorage = function setStorage(_ref14) {
2544
2522
  * @author huangbo
2545
2523
  * @date 2022年5月7日
2546
2524
  * @param {String} [url] - 连接地址
2525
+ * @param {String} [send] - 是否发送消息
2547
2526
  * @param {String} [take] - 订阅地址
2548
2527
  * @param {String} [debug] - 调试
2549
2528
  * @param {String} [interval] - 重连间隔时间
2550
- **/
2551
- function socket(options) {
2552
- var nextDate = 0;
2553
- var connect = 1;
2554
- return new Promise(function (resolve, reject) {
2555
- var wshost = getStorage('wshost') || '';
2556
- var option = {
2557
- url: wshost + _config_api__WEBPACK_IMPORTED_MODULE_0__[/* wss */ "Zb"],
2558
- take: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* topic */ "Qb"],
2559
- debug: true,
2560
- interval: 20
2561
- };
2562
- var websocket = win.websocket || {};
2563
- if (options && isObject(options)) {
2564
- option = _extends({}, option, options);
2565
- }
2566
- var key = window.btoa(option.url);
2567
- if (!websocket[key]) {
2568
- websocket[key] = { socket: new sockjs_client__WEBPACK_IMPORTED_MODULE_4___default.a(option.url) };
2569
- win.websocket = websocket;
2570
- }
2571
-
2572
- var client = websocket[key] ? websocket[key].client : null;
2573
- if (!client) {
2574
- client = websocket[key].client = stompjs__WEBPACK_IMPORTED_MODULE_5___default.a.over(websocket[key].socket);
2575
- !option.debug && (client.debug = null);
2576
- }
2577
- client.connect({}, function () {
2578
- client.subscribe(option.take, function (response) {
2579
- var res = JSON.parse(response.body);
2580
- resolve(res, function () {
2581
- client.disconnect();
2582
- win.top.websocket && win.top.websocket[key] && delete win.top.websocket[key];
2583
- }, client, websocket[key]);
2584
- });
2585
- }, function (error) {
2586
- var diffSecond = parseInt((new Date() - nextDate) / 1000, 10);
2587
- if (connect > 5 && diffSecond < option.interval) {
2588
- client.disconnect();
2589
- if (win.top.websocket) {
2590
- if (Object.keys(win.top.websocket).length > 1) {
2591
- delete win.top.websocket[key];
2592
- } else {
2593
- delete win.top.websocket;
2594
- }
2595
- }
2596
- } else {
2597
- win.top.websocket && win.top.websocket[key] && setTimeout(function () {
2598
- socket(options);
2599
- }, 5000);
2600
- }
2601
- reject(error);
2602
- });
2603
- });
2529
+ * @param {Function} [success] - 调试
2530
+ * @param {Function} [error] - 重连间隔时间
2531
+ **/
2532
+ function socket(option, vm) {
2533
+ var options = {};
2534
+ for (var i in option) {
2535
+ if (i === 'send') {
2536
+ options['isSend'] = option[i];
2537
+ } else {
2538
+ options[i] = option[i];
2539
+ }
2540
+ }
2541
+ var socket = new _webSocket__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"]();
2542
+ socket.init(options, vm);
2543
+ return socket;
2604
2544
  }
2605
2545
  /**
2606
2546
  * sum
@@ -3040,8 +2980,7 @@ var watermark = function watermark(option) {
3040
2980
  });
3041
2981
 
3042
2982
  /***/ }),
3043
-
3044
- /***/ 1:
2983
+ /* 1 */
3045
2984
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3046
2985
 
3047
2986
  "use strict";
@@ -3380,15 +3319,13 @@ var sendBatch = '/notify2/sendRecord/reSendNotifyMessageBatch';
3380
3319
  var formContents = '/config/admin/online/onlineForm/render';
3381
3320
 
3382
3321
  /***/ }),
3383
-
3384
- /***/ 2:
3322
+ /* 2 */
3385
3323
  /***/ (function(module, exports) {
3386
3324
 
3387
3325
  module.exports = require("eoss-element");
3388
3326
 
3389
3327
  /***/ }),
3390
-
3391
- /***/ 3:
3328
+ /* 3 */
3392
3329
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3393
3330
 
3394
3331
  "use strict";
@@ -3492,8 +3429,203 @@ function normalizeComponent(
3492
3429
 
3493
3430
 
3494
3431
  /***/ }),
3432
+ /* 4 */
3433
+ /***/ (function(module, exports) {
3434
+
3435
+ module.exports = require("qs");
3436
+
3437
+ /***/ }),
3438
+ /* 5 */
3439
+ /***/ (function(module, exports) {
3440
+
3441
+ module.exports = require("axios");
3442
+
3443
+ /***/ }),
3444
+ /* 6 */
3445
+ /***/ (function(module, exports) {
3446
+
3447
+ module.exports = require("json-bigint");
3448
+
3449
+ /***/ }),
3450
+ /* 7 */
3451
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3452
+
3453
+ "use strict";
3454
+ /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
3455
+ /* harmony import */ var sockjs_client__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sockjs_client__WEBPACK_IMPORTED_MODULE_0__);
3456
+ /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9);
3457
+ /* harmony import */ var stompjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(stompjs__WEBPACK_IMPORTED_MODULE_1__);
3458
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3459
+
3460
+
3461
+
3462
+
3463
+ var WebSocket = function () {
3464
+ // 构造函数
3465
+ function WebSocket() {
3466
+ _classCallCheck(this, WebSocket);
3467
+
3468
+ this.host = sessionStorage.getItem('wshost') || '';
3469
+ this.tryTimes = 1; // 重连次数
3470
+ this.callback = null; // 回调函数
3471
+ this.client = null; // stomp对象
3472
+ this.reconTimeout = null; // 重连延时器
3473
+ this.debug = true; // 调试
3474
+ this.interval = 20; // 重连间隔时间
3475
+ this.vm = null;
3476
+ this.nextDate = 0;
3477
+ this.connects = 1;
3478
+ this.recon = false;
3479
+ this.sendTimeout = null;
3480
+ this.isSend = false;
3481
+ }
3482
+
3483
+ /** socket连接 */
3484
+
3485
+
3486
+ WebSocket.prototype.connect = function connect() {
3487
+ var _this = this;
3488
+
3489
+ if (!this.client) {
3490
+ // 连接SockJS
3491
+ var socket = new sockjs_client__WEBPACK_IMPORTED_MODULE_0___default.a(this.host + this.url);
3492
+ // 获取STOMP子协议的客户端对象
3493
+ this.client = stompjs__WEBPACK_IMPORTED_MODULE_1___default.a.over(socket);
3494
+ }
3495
+
3496
+ // 日志不打印
3497
+ if (!this.debug) {
3498
+ console.log(111);
3499
+ this.client.debug = function () {};
3500
+ }
3501
+
3502
+ // 向服务器发起websocket连接
3503
+ this.client.connect({}, function () {
3504
+ _this.recon = true;
3505
+ // tryTimes定义重置
3506
+ _this.connects = 1;
3507
+ // 订阅消息
3508
+ // if (!this.isSend) {
3509
+ _this.subscribe();
3510
+ // }
3511
+ }, function (error) {
3512
+ var diffSecond = parseInt((new Date() - _this.nextDate) / 1000, 10);
3513
+ if (_this.connects > 5 && diffSecond < _this.interval) {
3514
+ _this.client.disconnect();
3515
+ _this.error && _this.error(error);
3516
+ } else {
3517
+ _this.reconTimeout = setTimeout(function () {
3518
+ _this.connect();
3519
+ _this.connects++;
3520
+ }, 5000);
3521
+ }
3522
+ });
3523
+ };
3524
+ /** 订阅服务端 */
3525
+
3526
+
3527
+ WebSocket.prototype.subscribe = function subscribe() {
3528
+ var _this2 = this;
3529
+
3530
+ // 订阅服务端提供的某个topic
3531
+ this.client.subscribe(this.take, function (response) {
3532
+ if (response && (_this2.callback || _this2.success)) {
3533
+ var callback = _this2.callback || _this2.success;
3534
+ callback(JSON.parse(response.body));
3535
+ }
3536
+ });
3537
+ };
3538
+
3539
+ /** 赋值、初始化socket */
3540
+
3541
+
3542
+ WebSocket.prototype.init = function init(option, vm) {
3543
+ for (var i in option) {
3544
+ this[i] = option[i];
3545
+ }
3546
+ this.vm = vm;
3547
+ // 初始化连接
3548
+ this.connect();
3549
+ };
3550
+
3551
+ /** 发送消息 */
3552
+
3553
+
3554
+ WebSocket.prototype.send = function send(data) {
3555
+ var _this3 = this;
3556
+
3557
+ if (this.recon) {
3558
+ clearTimeout(this.sendTimeout);
3559
+ this.client.send(this.take, {}, typeof data === 'string' ? data : JSON.stringify(data));
3560
+ } else {
3561
+ this.sendTimeout = setTimeout(function () {
3562
+ _this3.send(data);
3563
+ }, 1000);
3564
+ }
3565
+ };
3566
+
3567
+ /** 销毁 */
3568
+
3569
+
3570
+ WebSocket.prototype.destroy = function destroy() {
3571
+ // 断开连接,清除定时器
3572
+ if (this.client) {
3573
+ this.client.disconnect();
3574
+ };
3575
+ this.reconTimeout && clearTimeout(this.reconTimeout);
3576
+ this.sendTimeout && clearTimeout(this.sendTimeout);
3577
+ };
3578
+
3579
+ return WebSocket;
3580
+ }();
3581
+
3582
+ /* harmony default export */ __webpack_exports__["a"] = (WebSocket);
3583
+
3584
+ /***/ }),
3585
+ /* 8 */
3586
+ /***/ (function(module, exports) {
3587
+
3588
+ module.exports = require("sockjs-client");
3589
+
3590
+ /***/ }),
3591
+ /* 9 */
3592
+ /***/ (function(module, exports) {
3593
+
3594
+ module.exports = require("stompjs");
3595
+
3596
+ /***/ }),
3597
+ /* 10 */
3598
+ /***/ (function(module, exports) {
3495
3599
 
3496
- /***/ 35:
3600
+ module.exports = require("sm-crypto");
3601
+
3602
+ /***/ }),
3603
+ /* 11 */,
3604
+ /* 12 */,
3605
+ /* 13 */,
3606
+ /* 14 */,
3607
+ /* 15 */,
3608
+ /* 16 */,
3609
+ /* 17 */,
3610
+ /* 18 */,
3611
+ /* 19 */,
3612
+ /* 20 */,
3613
+ /* 21 */,
3614
+ /* 22 */,
3615
+ /* 23 */,
3616
+ /* 24 */,
3617
+ /* 25 */,
3618
+ /* 26 */,
3619
+ /* 27 */,
3620
+ /* 28 */,
3621
+ /* 29 */,
3622
+ /* 30 */,
3623
+ /* 31 */,
3624
+ /* 32 */,
3625
+ /* 33 */,
3626
+ /* 34 */,
3627
+ /* 35 */,
3628
+ /* 36 */
3497
3629
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3498
3630
 
3499
3631
  "use strict";
@@ -3762,48 +3894,5 @@ main.install = function (Vue) {
3762
3894
 
3763
3895
  /* harmony default export */ var button_group = __webpack_exports__["default"] = (main);
3764
3896
 
3765
- /***/ }),
3766
-
3767
- /***/ 4:
3768
- /***/ (function(module, exports) {
3769
-
3770
- module.exports = require("qs");
3771
-
3772
- /***/ }),
3773
-
3774
- /***/ 5:
3775
- /***/ (function(module, exports) {
3776
-
3777
- module.exports = require("axios");
3778
-
3779
- /***/ }),
3780
-
3781
- /***/ 6:
3782
- /***/ (function(module, exports) {
3783
-
3784
- module.exports = require("json-bigint");
3785
-
3786
- /***/ }),
3787
-
3788
- /***/ 7:
3789
- /***/ (function(module, exports) {
3790
-
3791
- module.exports = require("sockjs-client");
3792
-
3793
- /***/ }),
3794
-
3795
- /***/ 8:
3796
- /***/ (function(module, exports) {
3797
-
3798
- module.exports = require("stompjs");
3799
-
3800
- /***/ }),
3801
-
3802
- /***/ 9:
3803
- /***/ (function(module, exports) {
3804
-
3805
- module.exports = require("sm-crypto");
3806
-
3807
3897
  /***/ })
3808
-
3809
- /******/ });
3898
+ /******/ ]);