lw-cdp-ui 1.2.65 → 1.3.1

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,7 +352,7 @@ export default {
352
352
  }
353
353
  },
354
354
  beforeCreate() {
355
- // 挂载菜单订阅
355
+ // 挂载自定义菜单订阅
356
356
  this.$bus.$on('setMenu', (menu) => {
357
357
  this.changeMenu = true
358
358
  this.menu = this.filterUrl(menu)
@@ -370,8 +370,10 @@ export default {
370
370
  this.onLayoutResize();
371
371
  window.addEventListener('resize', this.onLayoutResize);
372
372
  this.getUserInfo();
373
- var menu = this.$router.sc_getMenu();
374
- this.menu = this.filterUrl(menu);
373
+ if (!this.changeMenu) {
374
+ var menu = this.$router.sc_getMenu();
375
+ this.menu = this.filterUrl(menu);
376
+ }
375
377
  this.showThis()
376
378
  this.$store.commit("LOAD_USER_FROM_LOCAL_STORAGE")
377
379
  },
@@ -409,11 +411,11 @@ export default {
409
411
  let userAuthInfo = {
410
412
  ...user.userAuthInfo,
411
413
  combined: user.combined,
414
+ loginPage: user.loginPage,
412
415
  menuContent: user.menuContent,
413
416
  }
414
417
  this.$tool.data.set('tenantId', user.userAuthInfo.tenantId)
415
418
  this.$tool.data.set('userAuthInfo', userAuthInfo)
416
- this.$tool.data.set('MenuPath', user.userAuthInfo.grantedApplications)
417
419
  this.$store.state.user = userAuthInfo
418
420
  },
419
421
 
@@ -299,6 +299,7 @@ export default {
299
299
  this.$store.commit("clearViewTags");
300
300
  this.$store.commit("clearKeepLive");
301
301
  this.$store.commit("clearIframeList")
302
+ this.$tool.data.remove("MENU_LIST")
302
303
  },
303
304
  methods: {
304
305
  // 加密
@@ -357,12 +358,12 @@ export default {
357
358
  let userAuthInfo = {
358
359
  ...user.userAuthInfo,
359
360
  combined: user.combined,
361
+ loginPage: user.loginPage,
360
362
  menuContent: user.menuContent,
361
363
  }
362
364
  this.$tool.data.set('tenantId', user.userAuthInfo.tenantId)
363
365
  this.$tool.data.set('userAuthInfo', userAuthInfo)
364
366
  // 用与应用菜单显示
365
- this.$tool.data.set('MenuPath', user.userAuthInfo.grantedApplications)
366
367
  this.$store.state.user = userAuthInfo
367
368
 
368
369
 
@@ -3077,9 +3077,11 @@ const D8 = /* @__PURE__ */ ue(V8, [["render", R8], ["__scopeId", "data-v-91dc7bb
3077
3077
  this.$store.state.global.menuIsCollapse = !!n;
3078
3078
  },
3079
3079
  async created() {
3080
- this.onLayoutResize(), window.addEventListener("resize", this.onLayoutResize), this.getUserInfo();
3081
- var e = this.$router.sc_getMenu();
3082
- this.menu = this.filterUrl(e), this.showThis(), this.$store.commit("LOAD_USER_FROM_LOCAL_STORAGE");
3080
+ if (this.onLayoutResize(), window.addEventListener("resize", this.onLayoutResize), this.getUserInfo(), !this.changeMenu) {
3081
+ var e = this.$router.sc_getMenu();
3082
+ this.menu = this.filterUrl(e);
3083
+ }
3084
+ this.showThis(), this.$store.commit("LOAD_USER_FROM_LOCAL_STORAGE");
3083
3085
  },
3084
3086
  watch: {
3085
3087
  async $route() {
@@ -3106,9 +3108,10 @@ const D8 = /* @__PURE__ */ ue(V8, [["render", R8], ["__scopeId", "data-v-91dc7bb
3106
3108
  let r = {
3107
3109
  ...n.userAuthInfo,
3108
3110
  combined: n.combined,
3111
+ loginPage: n.loginPage,
3109
3112
  menuContent: n.menuContent
3110
3113
  };
3111
- this.$tool.data.set("tenantId", n.userAuthInfo.tenantId), this.$tool.data.set("userAuthInfo", r), this.$tool.data.set("MenuPath", n.userAuthInfo.grantedApplications), this.$store.state.user = r;
3114
+ this.$tool.data.set("tenantId", n.userAuthInfo.tenantId), this.$tool.data.set("userAuthInfo", r), this.$store.state.user = r;
3112
3115
  },
3113
3116
  openSetting() {
3114
3117
  this.settingDialog = !0;
@@ -5298,7 +5301,7 @@ const I6 = /* @__PURE__ */ a5(_6), k6 = "data:image/svg+xml,%3c?xml%20version='1
5298
5301
  };
5299
5302
  },
5300
5303
  created: function() {
5301
- this.$store.commit("clearViewTags"), this.$store.commit("clearKeepLive"), this.$store.commit("clearIframeList");
5304
+ this.$store.commit("clearViewTags"), this.$store.commit("clearKeepLive"), this.$store.commit("clearIframeList"), this.$tool.data.remove("MENU_LIST");
5302
5305
  },
5303
5306
  methods: {
5304
5307
  // 加密
@@ -5334,9 +5337,10 @@ const I6 = /* @__PURE__ */ a5(_6), k6 = "data:image/svg+xml,%3c?xml%20version='1
5334
5337
  let u = {
5335
5338
  ...l.userAuthInfo,
5336
5339
  combined: l.combined,
5340
+ loginPage: l.loginPage,
5337
5341
  menuContent: l.menuContent
5338
5342
  };
5339
- if (this.$tool.data.set("tenantId", l.userAuthInfo.tenantId), this.$tool.data.set("userAuthInfo", u), this.$tool.data.set("MenuPath", l.userAuthInfo.grantedApplications), this.$store.state.user = u, sessionStorage.setItem("easyweb_session_passport_current_user", JSON.stringify({ v: l })), sessionStorage.setItem("easyweb_session_passport_bu", JSON.stringify({ v: r[0] })), sessionStorage.setItem("easyweb_session_passport_bu_list", JSON.stringify({ v: r })), document.cookie = `Authorization=Bearer ${t}`, this.isInitialized) {
5343
+ if (this.$tool.data.set("tenantId", l.userAuthInfo.tenantId), this.$tool.data.set("userAuthInfo", u), this.$store.state.user = u, sessionStorage.setItem("easyweb_session_passport_current_user", JSON.stringify({ v: l })), sessionStorage.setItem("easyweb_session_passport_bu", JSON.stringify({ v: r[0] })), sessionStorage.setItem("easyweb_session_passport_bu_list", JSON.stringify({ v: r })), document.cookie = `Authorization=Bearer ${t}`, this.isInitialized) {
5340
5344
  let d = await this.$api.auth.initialized();
5341
5345
  this.$tool.data.set("zoneInitialized", d), d ? this.$router.push(this.$config.DASHBOARD_URL) : this.$router.push(this.$config.INIT_URL);
5342
5346
  } else
@@ -5634,7 +5638,7 @@ function N6(e, n, t, r, a, o) {
5634
5638
  ])
5635
5639
  ]);
5636
5640
  }
5637
- const U6 = /* @__PURE__ */ ue(L6, [["render", N6], ["__scopeId", "data-v-f0aa3ad6"]]), j6 = { class: "svg-icon" }, G6 = ["xlink:href"], z6 = {
5641
+ const U6 = /* @__PURE__ */ ue(L6, [["render", N6], ["__scopeId", "data-v-22546a3b"]]), j6 = { class: "svg-icon" }, G6 = ["xlink:href"], z6 = {
5638
5642
  __name: "index",
5639
5643
  props: {
5640
5644
  name: {