eoss-ui 0.4.91 → 0.4.92

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.
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/input.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/login.js CHANGED
@@ -448,11 +448,11 @@ var ajax = function ajax(_ref) {
448
448
  }
449
449
  if (method === 'post' && format) {
450
450
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
451
- if (!header['content-type']) {
451
+ if (!header['content-type'] && !header['Content-Type']) {
452
452
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
453
453
  }
454
454
  } else {
455
- if (!header['content-type']) {
455
+ if (!header['content-type'] && !header['Content-Type']) {
456
456
  header['content-type'] = 'application/json;charset=UTF-8';
457
457
  }
458
458
  }
package/lib/main.js CHANGED
@@ -448,11 +448,11 @@ var ajax = function ajax(_ref) {
448
448
  }
449
449
  if (method === 'post' && format) {
450
450
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
451
- if (!header['content-type']) {
451
+ if (!header['content-type'] && !header['Content-Type']) {
452
452
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
453
453
  }
454
454
  } else {
455
- if (!header['content-type']) {
455
+ if (!header['content-type'] && !header['Content-Type']) {
456
456
  header['content-type'] = 'application/json;charset=UTF-8';
457
457
  }
458
458
  }
@@ -3484,7 +3484,7 @@ module.exports = require("stompjs");
3484
3484
  // ESM COMPAT FLAG
3485
3485
  __webpack_require__.r(__webpack_exports__);
3486
3486
 
3487
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=6641fcac&
3487
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=08b696ec&
3488
3488
  var render = function () {
3489
3489
  var _vm = this
3490
3490
  var _h = _vm.$createElement
@@ -3914,7 +3914,7 @@ var staticRenderFns = []
3914
3914
  render._withStripped = true
3915
3915
 
3916
3916
 
3917
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=6641fcac&
3917
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=08b696ec&
3918
3918
 
3919
3919
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=799780ee&
3920
3920
  var userinfovue_type_template_id_799780ee_render = function () {
@@ -6454,32 +6454,32 @@ var log = util["a" /* default */].getParams('console');
6454
6454
  this.navIds = ids;
6455
6455
  this.setTitle(ids[0]);
6456
6456
  }
6457
+ } else if (sessionStorage.getItem('jump') && this.history) {
6458
+ var _ids = this.getId(this.menus, sessionStorage.getItem('jump'), true);
6459
+ if (_ids) {
6460
+ this.defaultActive = _ids;
6461
+ this.navIds = _ids;
6462
+ this.setTitle(_ids[0]);
6463
+ }
6457
6464
  } else if (util["a" /* default */].win.location.hash) {
6458
6465
  var hash = util["a" /* default */].win.location.hash;
6459
6466
  if (hash) {
6460
6467
  hash = hash.split('?')[0];
6461
6468
  }
6462
6469
  if (hash !== '#/' && hash !== '#/main') {
6463
- var _ids = this.getId(this.menus, util["a" /* default */].win.location.hash, true);
6464
- if (_ids) {
6465
- this.defaultActive = _ids;
6466
- this.navIds = _ids;
6467
- this.setTitle(_ids[0]);
6468
- }
6469
- } else if (sessionStorage.getItem('jump') && this.history) {
6470
- var _ids2 = this.getId(this.menus, sessionStorage.getItem('jump'), true);
6470
+ var _ids2 = this.getId(this.menus, util["a" /* default */].win.location.hash, true);
6471
6471
  if (_ids2) {
6472
6472
  this.defaultActive = _ids2;
6473
6473
  this.navIds = _ids2;
6474
6474
  this.setTitle(_ids2[0]);
6475
6475
  }
6476
- }
6477
- } else if (sessionStorage.getItem('jump') && this.history) {
6478
- var _ids3 = this.getId(this.menus, sessionStorage.getItem('jump'), true);
6479
- if (_ids3) {
6480
- this.defaultActive = _ids3;
6481
- this.navIds = _ids3;
6482
- this.setTitle(_ids3[0]);
6476
+ } else if (sessionStorage.getItem('jump') && this.history) {
6477
+ var _ids3 = this.getId(this.menus, sessionStorage.getItem('jump'), true);
6478
+ if (_ids3) {
6479
+ this.defaultActive = _ids3;
6480
+ this.navIds = _ids3;
6481
+ this.setTitle(_ids3[0]);
6482
+ }
6483
6483
  }
6484
6484
  }
6485
6485
  this.setMenu(this.menus);
@@ -6718,32 +6718,32 @@ var log = util["a" /* default */].getParams('console');
6718
6718
  if (ids) {
6719
6719
  _this5.defaultActive = ids;
6720
6720
  }
6721
+ } else if (sessionStorage.getItem('jump') && _this5.history) {
6722
+ var _ids4 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
6723
+ if (_ids4) {
6724
+ _this5.defaultActive = _ids4;
6725
+ _this5.navIds = _ids4;
6726
+ _this5.setTitle(_ids4[0]);
6727
+ }
6721
6728
  } else if (util["a" /* default */].win.location.hash) {
6722
6729
  var hash = util["a" /* default */].win.location.hash;
6723
6730
  if (hash) {
6724
6731
  hash = hash.split('?')[0];
6725
6732
  }
6726
6733
  if (hash !== '#/' && hash !== '#/main') {
6727
- var _ids4 = _this5.getId(_this5.menus, util["a" /* default */].win.location.hash, true);
6728
- if (_ids4) {
6729
- _this5.defaultActive = _ids4;
6730
- _this5.navIds = _ids4;
6731
- _this5.setTitle(_ids4[0]);
6732
- }
6733
- } else if (sessionStorage.getItem('jump') && _this5.history) {
6734
- var _ids5 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
6734
+ var _ids5 = _this5.getId(_this5.menus, util["a" /* default */].win.location.hash, true);
6735
6735
  if (_ids5) {
6736
6736
  _this5.defaultActive = _ids5;
6737
6737
  _this5.navIds = _ids5;
6738
6738
  _this5.setTitle(_ids5[0]);
6739
6739
  }
6740
- }
6741
- } else if (sessionStorage.getItem('jump') && _this5.history) {
6742
- var _ids6 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
6743
- if (_ids6) {
6744
- _this5.defaultActive = _ids6;
6745
- _this5.navIds = _ids6;
6746
- _this5.setTitle(_ids6[0]);
6740
+ } else if (sessionStorage.getItem('jump') && _this5.history) {
6741
+ var _ids6 = _this5.getId(_this5.menus, sessionStorage.getItem('jump'), true);
6742
+ if (_ids6) {
6743
+ _this5.defaultActive = _ids6;
6744
+ _this5.navIds = _ids6;
6745
+ _this5.setTitle(_ids6[0]);
6746
+ }
6747
6747
  }
6748
6748
  }
6749
6749
  _this5.setTips(_this5.menus);
package/lib/nav.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/page.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/player.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/qr-code.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/select.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/selector.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/sizer.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/steps.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/switch.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/table-form.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/tabs.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/tips.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/tree-group.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/tree.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/upload.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/utils/util.js CHANGED
@@ -364,11 +364,11 @@ var ajax = function ajax(_ref) {
364
364
  }
365
365
  if (method === 'post' && format) {
366
366
  data = _qs2.default.stringify(data);
367
- if (!header['content-type']) {
367
+ if (!header['content-type'] && !header['Content-Type']) {
368
368
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
369
369
  }
370
370
  } else {
371
- if (!header['content-type']) {
371
+ if (!header['content-type'] && !header['Content-Type']) {
372
372
  header['content-type'] = 'application/json;charset=UTF-8';
373
373
  }
374
374
  }
package/lib/wujie.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/lib/wxlogin.js CHANGED
@@ -449,11 +449,11 @@ var ajax = function ajax(_ref) {
449
449
  }
450
450
  if (method === 'post' && format) {
451
451
  data = qs__WEBPACK_IMPORTED_MODULE_2___default.a.stringify(data);
452
- if (!header['content-type']) {
452
+ if (!header['content-type'] && !header['Content-Type']) {
453
453
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
454
454
  }
455
455
  } else {
456
- if (!header['content-type']) {
456
+ if (!header['content-type'] && !header['Content-Type']) {
457
457
  header['content-type'] = 'application/json;charset=UTF-8';
458
458
  }
459
459
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.4.91",
3
+ "version": "0.4.92",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -740,6 +740,17 @@ export default {
740
740
  this.navIds = ids;
741
741
  this.setTitle(ids[0]);
742
742
  }
743
+ } else if (sessionStorage.getItem('jump') && this.history) {
744
+ let ids = this.getId(
745
+ this.menus,
746
+ sessionStorage.getItem('jump'),
747
+ true
748
+ );
749
+ if (ids) {
750
+ this.defaultActive = ids;
751
+ this.navIds = ids;
752
+ this.setTitle(ids[0]);
753
+ }
743
754
  } else if (util.win.location.hash) {
744
755
  let hash = util.win.location.hash;
745
756
  if (hash) {
@@ -764,17 +775,6 @@ export default {
764
775
  this.setTitle(ids[0]);
765
776
  }
766
777
  }
767
- } else if (sessionStorage.getItem('jump') && this.history) {
768
- let ids = this.getId(
769
- this.menus,
770
- sessionStorage.getItem('jump'),
771
- true
772
- );
773
- if (ids) {
774
- this.defaultActive = ids;
775
- this.navIds = ids;
776
- this.setTitle(ids[0]);
777
- }
778
778
  }
779
779
  this.setMenu(this.menus);
780
780
  }
@@ -1027,6 +1027,17 @@ export default {
1027
1027
  if (ids) {
1028
1028
  this.defaultActive = ids;
1029
1029
  }
1030
+ } else if (sessionStorage.getItem('jump') && this.history) {
1031
+ let ids = this.getId(
1032
+ this.menus,
1033
+ sessionStorage.getItem('jump'),
1034
+ true
1035
+ );
1036
+ if (ids) {
1037
+ this.defaultActive = ids;
1038
+ this.navIds = ids;
1039
+ this.setTitle(ids[0]);
1040
+ }
1030
1041
  } else if (util.win.location.hash) {
1031
1042
  let hash = util.win.location.hash;
1032
1043
  if (hash) {
@@ -1055,17 +1066,6 @@ export default {
1055
1066
  this.setTitle(ids[0]);
1056
1067
  }
1057
1068
  }
1058
- } else if (sessionStorage.getItem('jump') && this.history) {
1059
- let ids = this.getId(
1060
- this.menus,
1061
- sessionStorage.getItem('jump'),
1062
- true
1063
- );
1064
- if (ids) {
1065
- this.defaultActive = ids;
1066
- this.navIds = ids;
1067
- this.setTitle(ids[0]);
1068
- }
1069
1069
  }
1070
1070
  this.setTips(this.menus);
1071
1071
  store.set('nav', this.menus);
package/src/index.js CHANGED
@@ -117,7 +117,7 @@ if (typeof window !== 'undefined' && window.Vue) {
117
117
  }
118
118
 
119
119
  export default {
120
- version: '0.4.91',
120
+ version: '0.4.92',
121
121
  install,
122
122
  Button,
123
123
  ButtonGroup,
package/src/utils/util.js CHANGED
@@ -393,11 +393,11 @@ const ajax = function ({
393
393
  }
394
394
  if (method === 'post' && format) {
395
395
  data = qs.stringify(data);
396
- if (!header['content-type']) {
396
+ if (!header['content-type'] && !header['Content-Type']) {
397
397
  header['content-type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
398
398
  }
399
399
  } else {
400
- if (!header['content-type']) {
400
+ if (!header['content-type'] && !header['Content-Type']) {
401
401
  header['content-type'] = 'application/json;charset=UTF-8';
402
402
  }
403
403
  }