lw-cdp-ui 1.4.66 → 1.4.67

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.
@@ -352,9 +352,13 @@ export default {
352
352
  },
353
353
  // 关闭当前标签 并跳转
354
354
  closeTagAndJump(path, keep) {
355
- this.$store.commit('removeKeepLive', keep)
356
- this.closeSelectedTag(this.$route, false)
355
+ if (keep) {
356
+ this.$store.commit('removeKeepLive', keep)
357
+ }
357
358
  this.$router.push(path)
359
+ if (this.$store.state.global.layoutTags) {
360
+ this.closeSelectedTag(this.$route, false)
361
+ }
358
362
  },
359
363
  // 显示ID
360
364
  getIdName(tag) {
@@ -603,7 +603,7 @@ const Ju = /* @__PURE__ */ ae(Hu, [["render", Wu], ["__scopeId", "data-v-4650169
603
603
  },
604
604
  // 关闭当前标签 并跳转
605
605
  closeTagAndJump(e, t) {
606
- this.$store.commit("removeKeepLive", t), this.closeSelectedTag(this.$route, !1), this.$router.push(e);
606
+ t && this.$store.commit("removeKeepLive", t), this.$router.push(e), this.$store.state.global.layoutTags && this.closeSelectedTag(this.$route, !1);
607
607
  },
608
608
  // 显示ID
609
609
  getIdName(e) {