eoss-ui 0.8.22 → 0.8.23

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.
@@ -63515,8 +63515,8 @@ mainvue_type_template_id_b3cc50dc_render._withStripped = true
63515
63515
 
63516
63516
  // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=b3cc50dc&
63517
63517
 
63518
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=65535c71&scoped=true&
63519
- var simplicityvue_type_template_id_65535c71_scoped_true_render = function () {
63518
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/index.vue?vue&type=template&id=7b9689e2&scoped=true&
63519
+ var simplicityvue_type_template_id_7b9689e2_scoped_true_render = function () {
63520
63520
  var _vm = this
63521
63521
  var _h = _vm.$createElement
63522
63522
  var _c = _vm._self._c || _h
@@ -64282,11 +64282,11 @@ var simplicityvue_type_template_id_65535c71_scoped_true_render = function () {
64282
64282
  ),
64283
64283
  ])
64284
64284
  }
64285
- var simplicityvue_type_template_id_65535c71_scoped_true_staticRenderFns = []
64286
- simplicityvue_type_template_id_65535c71_scoped_true_render._withStripped = true
64285
+ var simplicityvue_type_template_id_7b9689e2_scoped_true_staticRenderFns = []
64286
+ simplicityvue_type_template_id_7b9689e2_scoped_true_render._withStripped = true
64287
64287
 
64288
64288
 
64289
- // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=65535c71&scoped=true&
64289
+ // CONCATENATED MODULE: ./packages/main/src/simplicity/index.vue?vue&type=template&id=7b9689e2&scoped=true&
64290
64290
 
64291
64291
  // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/simplicity/avatar.vue?vue&type=template&id=e722b45c&scoped=true&
64292
64292
  var avatarvue_type_template_id_e722b45c_scoped_true_render = function () {
@@ -71683,6 +71683,8 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
71683
71683
  * @date 2024年9月7日
71684
71684
  **/
71685
71685
  handleRefresh: function handleRefresh(arg) {
71686
+ var _this7 = this;
71687
+
71686
71688
  var i = arg && arg != true && arg !== 'pageData' && !((typeof arg === 'undefined' ? 'undefined' : simplicityvue_type_script_lang_js_typeof(arg)) === 'object' && arg.path) ? utils_util.indexOfObj(this.tabs, arg, 'appCode,code,id,url') : utils_util.indexOfObj(this.tabs, this.activeName, 'id');
71687
71689
  var tab = this.tabs[i];
71688
71690
  if (simplicityvue_type_script_lang_js_isIE || tab.method === 'iframe') {
@@ -71711,11 +71713,14 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
71711
71713
  if (arg && (typeof arg === 'undefined' ? 'undefined' : simplicityvue_type_script_lang_js_typeof(arg)) === 'object' && arg.path) {
71712
71714
  url = this.buildWujieUrl(tab.url, arg);
71713
71715
  }
71714
-
71716
+ // 1. 获取带新时间戳的 URL
71717
+ var newUrl = utils_util.handlerUrl(url);
71718
+ // 2. 关键:先置空,等待 Wujie 销毁实例
71715
71719
  tab.url = '';
71716
- this.$nextTick(function () {
71717
- tab.url = utils_util.handlerUrl(url);
71718
- });
71720
+ // 3. 使用 setTimeout 替代 $nextTick,给 Wujie 更多时间清理内存和 DOM
71721
+ setTimeout(function () {
71722
+ _this7.$set(_this7.tabs, i, simplicityvue_type_script_lang_js_extends({}, tab, { url: newUrl }));
71723
+ }, 50); // 50ms 的延迟通常足以让 Wujie 完成卸载
71719
71724
  }
71720
71725
  return;
71721
71726
  }
@@ -71960,7 +71965,7 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
71960
71965
  * @date 2024年9月7日
71961
71966
  **/
71962
71967
  handleQuit: function handleQuit() {
71963
- var _this7 = this;
71968
+ var _this8 = this;
71964
71969
 
71965
71970
  this.$confirm('确定退出吗?', '退出系统', {
71966
71971
  confirmButtonText: '确定',
@@ -71976,19 +71981,19 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
71976
71981
  }
71977
71982
  break;
71978
71983
  }
71979
- if (_this7.singleLogout) {
71980
- for (var _i2 = 0; _i2 < _this7.singleLogout.length; _i2++) {
71984
+ if (_this8.singleLogout) {
71985
+ for (var _i2 = 0; _i2 < _this8.singleLogout.length; _i2++) {
71981
71986
  var iframe = document.createElement('iframe');
71982
71987
  iframe.style.display = 'none';
71983
- iframe.src = _this7.singleLogout[_i2];
71988
+ iframe.src = _this8.singleLogout[_i2];
71984
71989
  document.body.appendChild(iframe);
71985
71990
  }
71986
71991
  }
71987
71992
  utils_util.ajax({ method: 'post', url: logout }).then(function (res) {
71988
71993
  if (res.rCode == 0) {
71989
71994
  utils_util.removeStorage(['Authorization', 'token', 'ssId', 'userId', 'userName', 'auth', 'deviceUnique', 'menus', 'useCaseCodes', 'mainConfig', 'jump']);
71990
- if (_this7.onQuit && typeof _this7.onQuit === 'function') {
71991
- _this7.onQuit();
71995
+ if (_this8.onQuit && typeof _this8.onQuit === 'function') {
71996
+ _this8.onQuit();
71992
71997
  } else {
71993
71998
  try {
71994
71999
  var loginPage = utils_util.getStorage('login') || utils_util.getStorage('loginPage');
@@ -72032,7 +72037,7 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
72032
72037
  }
72033
72038
  }).catch(function (err) {
72034
72039
  if (err.message && err.message !== 'canceled') {
72035
- _this7.$message.error(err.message);
72040
+ _this8.$message.error(err.message);
72036
72041
  }
72037
72042
  });
72038
72043
  }).catch(function (e) {});
@@ -72090,13 +72095,13 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
72090
72095
  * @date 2024年9月7日
72091
72096
  **/
72092
72097
  handleOpened: function handleOpened(res) {
72093
- var _this8 = this;
72098
+ var _this9 = this;
72094
72099
 
72095
72100
  if (res === undefined) {
72096
72101
  this.sysMsg = [];
72097
72102
  } else if (res == false && this.sysMsg.length) {
72098
72103
  this.sysMsgOut = setTimeout(function () {
72099
- _this8.sysMsg = [];
72104
+ _this9.sysMsg = [];
72100
72105
  }, 3000);
72101
72106
  } else if (this.sysMsgOut) {
72102
72107
  clearTimeout(this.sysMsgOut);
@@ -72172,13 +72177,13 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
72172
72177
 
72173
72178
  //监听改变菜单
72174
72179
  handleListener: function handleListener() {
72175
- var _this9 = this;
72180
+ var _this10 = this;
72176
72181
 
72177
72182
  utils_util.win.addEventListener('message', function (e) {
72178
72183
  var msg = e.data;
72179
72184
  if (msg.key == 'jump_Menu') {
72180
72185
  var res = msg.data1;
72181
- _this9.jumpMenu(res);
72186
+ _this10.jumpMenu(res);
72182
72187
  }
72183
72188
  }, false);
72184
72189
  },
@@ -72215,11 +72220,11 @@ var simplicityvue_type_script_lang_js_events = [function (tabs, index, that) {
72215
72220
 
72216
72221
  var simplicity_component = normalizeComponent(
72217
72222
  src_simplicityvue_type_script_lang_js_,
72218
- simplicityvue_type_template_id_65535c71_scoped_true_render,
72219
- simplicityvue_type_template_id_65535c71_scoped_true_staticRenderFns,
72223
+ simplicityvue_type_template_id_7b9689e2_scoped_true_render,
72224
+ simplicityvue_type_template_id_7b9689e2_scoped_true_staticRenderFns,
72220
72225
  false,
72221
72226
  null,
72222
- "65535c71",
72227
+ "7b9689e2",
72223
72228
  null
72224
72229
 
72225
72230
  )
@@ -103214,7 +103219,7 @@ if (typeof window !== 'undefined' && window.Vue) {
103214
103219
  }
103215
103220
 
103216
103221
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
103217
- version: '0.8.22',
103222
+ version: '0.8.23',
103218
103223
  install: install,
103219
103224
  Button: packages_button,
103220
103225
  ButtonGroup: button_group,