@indfnd/common-mobile 0.0.70 → 0.0.73

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.73](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.72...v0.0.73) (2025-06-07)
6
+
7
+ ### [0.0.72](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.71...v0.0.72) (2025-06-07)
8
+
9
+
10
+ ### Features
11
+
12
+ * 修改取appId的逻辑 ([d893056](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/d893056743479246b59c850fbd027140db625705))
13
+
14
+ ### [0.0.71](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.70...v0.0.71) (2025-05-28)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * 修改qiankun应用顶部导航栏的样式 ([2a92db7](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/2a92db74c89707dad7dcd55b8c8e754aacb55f5f))
20
+
5
21
  ### [0.0.70](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.69...v0.0.70) (2025-05-10)
6
22
 
7
23
 
@@ -2,7 +2,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
2
2
  import Vue$1 from "vue";
3
3
  import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
4
4
  const name$1 = "@indfnd/common-mobile";
5
- const version$2 = "0.0.69";
5
+ const version$2 = "0.0.72";
6
6
  const author$1 = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -63873,12 +63873,20 @@ const __vue2_script$7 = {
63873
63873
  };
63874
63874
  },
63875
63875
  mounted() {
63876
+ var _a;
63876
63877
  let menus = this.$store.getters.getMenuTreeList;
63877
63878
  let permissionList = this.$store.state.app.permissionList;
63878
63879
  let noShowPermissionIdList = permissionList.filter((item2) => item2.extendProps).map((item2) => ({
63879
63880
  key: item2.permissionId,
63880
63881
  parseResult: this.tryParseJson(item2.extendProps)
63881
63882
  })).filter((item2) => item2.parseResult.success && item2.parseResult.result.hideInAppCenter).map((item2) => item2.key);
63883
+ if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp") {
63884
+ let mobileMainApp = menus.find((item2) => {
63885
+ var _a2;
63886
+ return ((_a2 = JSON.parse(item2.extendProps)) == null ? void 0 : _a2.mainMobile) == "1";
63887
+ });
63888
+ menus = mobileMainApp.children;
63889
+ }
63882
63890
  let temps = menus.filter(
63883
63891
  (item2) => item2.meta.appId === this.$store.state.app.appInfo.appId && !noShowPermissionIdList.includes(item2.meta.permissionId)
63884
63892
  );
@@ -68617,8 +68625,16 @@ const __vue2_script$3 = {
68617
68625
  this.$store.commit("setMyAppsList", this.my_apps);
68618
68626
  },
68619
68627
  mounted() {
68628
+ var _a;
68620
68629
  this.my_apps = this.$store.getters.getMyAppsList;
68621
68630
  let menus = this.$store.getters.getMenuTreeList;
68631
+ if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp") {
68632
+ let mobileMainApp = menus.find((item2) => {
68633
+ var _a2;
68634
+ return ((_a2 = JSON.parse(item2.extendProps)) == null ? void 0 : _a2.mainMobile) == "1";
68635
+ });
68636
+ menus = mobileMainApp.children;
68637
+ }
68622
68638
  let temps = menus.filter((item2) => item2.name === this.name);
68623
68639
  this.apps_menus = temps[0].children;
68624
68640
  this.title = temps[0].meta.title;
@@ -69187,7 +69203,7 @@ function listToMenuTree({ list: list2, menuTree, pageNode, parentId, crumbs, roo
69187
69203
  return;
69188
69204
  let appInfo = getSessionStorage("appInfo");
69189
69205
  list2.forEach((item2) => {
69190
- const { permissionId, label: title4, appId, pid, icon, type: type2, uri, permissionValue } = item2;
69206
+ const { permissionId, label: title4, appId, pid, icon, type: type2, uri, permissionValue, extendProps } = item2;
69191
69207
  if (appId != appInfo.appId)
69192
69208
  return;
69193
69209
  const name2 = permissionValue;
@@ -69201,7 +69217,8 @@ function listToMenuTree({ list: list2, menuTree, pageNode, parentId, crumbs, roo
69201
69217
  uri,
69202
69218
  component: name2,
69203
69219
  meta: { appId, permissionId, title: title4, icon, crumbs: [...crumbs], activeName: name2 },
69204
- children: []
69220
+ children: [],
69221
+ extendProps
69205
69222
  };
69206
69223
  node.meta.crumbs.push({ icon, name: name2, title: title4, type: type2 });
69207
69224
  if (PERMISSION_TYPE.DIRECTORY === type2) {
@@ -70569,6 +70586,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
70569
70586
  }
70570
70587
  } catch (error) {
70571
70588
  console.log("router2");
70589
+ console.log(error);
70572
70590
  next2({ name: LOGIN_PAGE_NAME });
70573
70591
  }
70574
70592
  Spin.hide();
@@ -70964,6 +70982,17 @@ var app = {
70964
70982
  appId = rlt[1];
70965
70983
  }
70966
70984
  }
70985
+ if (appList.length == 1) {
70986
+ let appInfo = appList[0];
70987
+ appId = appInfo.appId || "";
70988
+ }
70989
+ if (!appId) {
70990
+ let appInfo = appList.find((item2) => {
70991
+ var _a;
70992
+ return ((_a = item2.application) == null ? void 0 : _a.appBizCode) == "mobile-main";
70993
+ });
70994
+ appId = appInfo.appId || "";
70995
+ }
70967
70996
  if (!appId) {
70968
70997
  const appInfo = getSessionStorage("appInfo");
70969
70998
  appId = (appInfo == null ? void 0 : appInfo.appId) || "";