@indfnd/common-mobile 1.0.68 → 1.0.70

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,15 @@
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
+ ### [1.0.70](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.69...v1.0.70) (2026-03-20)
6
+
7
+ ### [1.0.69](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.68...v1.0.69) (2026-03-19)
8
+
9
+
10
+ ### Features
11
+
12
+ * 增加配置 ([ef0e68c](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/ef0e68cb0c27662aad43e2c07c2c98a3d2db8888))
13
+
5
14
  ### [1.0.68](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.67...v1.0.68) (2026-03-19)
6
15
 
7
16
  ### [1.0.67](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.66...v1.0.67) (2026-03-12)
@@ -3,7 +3,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
3
3
  import Vue$1 from "vue";
4
4
  import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
5
5
  const name$1 = "@indfnd/common-mobile";
6
- const version$2 = "1.0.67";
6
+ const version$2 = "1.0.69";
7
7
  const author$1 = "huxuetong";
8
8
  const publishConfig = {
9
9
  registry: "https://registry.npmjs.org/"
@@ -23698,73 +23698,91 @@ const __vue2_script$n = {
23698
23698
  };
23699
23699
  },
23700
23700
  mounted() {
23701
- var _a, _b;
23702
- let menus = this.$store.getters.getMenuTreeList;
23703
- let permissionList = this.$store.state.app.permissionList;
23704
- let noShowPermissionIdList = permissionList.filter((item2) => item2.extendProps).map((item2) => ({
23705
- key: item2.permissionId,
23706
- parseResult: this.tryParseJson(item2.extendProps)
23707
- })).filter((item2) => item2.parseResult.success && item2.parseResult.result.hideInAppCenter).map((item2) => item2.key);
23708
- if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
23709
- let mobileMainApp = menus.find(
23710
- (item2) => {
23711
- var _a2;
23712
- return item2.extendProps && ((_a2 = JSON.parse(item2.extendProps)) == null ? void 0 : _a2.mainMobile) == "1";
23713
- }
23714
- );
23715
- menus = (mobileMainApp == null ? void 0 : mobileMainApp.children) || [];
23701
+ this.renderTabBar();
23702
+ },
23703
+ watch: {
23704
+ menuTreeList: {
23705
+ handler: function() {
23706
+ console.log("menuTreeList changed trigger renderTabBar");
23707
+ this.renderTabBar();
23708
+ },
23709
+ deep: true
23716
23710
  }
23717
- let temps = menus.filter(
23718
- (item2) => item2.meta.appId === this.$store.state.app.appInfo.appId && !noShowPermissionIdList.includes(item2.meta.permissionId)
23719
- );
23720
- if (Array.isArray(temps) && temps.length > 0) {
23721
- this.tab_menus = temps;
23722
- } else {
23723
- this.tab_menus = [
23724
- {
23725
- type: 1,
23726
- name: "appsNew",
23727
- pid: "0",
23728
- path: "",
23729
- uri: "",
23730
- component: "EmptyLayout",
23731
- meta: {
23732
- title: "\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",
23733
- icon: "apps-o"
23734
- },
23735
- extendProps: ""
23736
- },
23737
- {
23738
- type: 1,
23739
- name: "workBench",
23740
- pid: "0",
23741
- path: "",
23742
- uri: "",
23743
- component: "EmptyLayout",
23744
- meta: {
23745
- title: "\u5DE5\u4F5C\u53F0",
23746
- icon: "home-o"
23747
- },
23748
- extendProps: ""
23749
- },
23750
- {
23751
- type: 1,
23752
- name: "user",
23753
- pid: "0",
23754
- path: "/",
23755
- uri: "/",
23756
- component: "EmptyLayout",
23757
- meta: {
23758
- title: "\u6211\u7684",
23759
- icon: "user-o"
23760
- },
23761
- extendProps: ""
23762
- }
23763
- ];
23711
+ },
23712
+ computed: {
23713
+ menuTreeList() {
23714
+ console.log("menuTreeList changed in tabbar");
23715
+ return this.$store.getters.getMenuTreeList;
23764
23716
  }
23765
- console.log(this.tab_menus);
23766
23717
  },
23767
23718
  methods: {
23719
+ renderTabBar() {
23720
+ var _a, _b;
23721
+ let menus = this.$store.getters.getMenuTreeList;
23722
+ let permissionList = this.$store.state.app.permissionList;
23723
+ let noShowPermissionIdList = permissionList.filter((item2) => item2.extendProps).map((item2) => ({
23724
+ key: item2.permissionId,
23725
+ parseResult: this.tryParseJson(item2.extendProps)
23726
+ })).filter((item2) => item2.parseResult.success && item2.parseResult.result.hideInAppCenter).map((item2) => item2.key);
23727
+ if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
23728
+ let mobileMainApp = menus.find(
23729
+ (item2) => {
23730
+ var _a2;
23731
+ return item2.extendProps && ((_a2 = JSON.parse(item2.extendProps)) == null ? void 0 : _a2.mainMobile) == "1";
23732
+ }
23733
+ );
23734
+ menus = (mobileMainApp == null ? void 0 : mobileMainApp.children) || [];
23735
+ }
23736
+ let temps = menus.filter(
23737
+ (item2) => item2.meta.appId === this.$store.state.app.appInfo.appId && !noShowPermissionIdList.includes(item2.meta.permissionId)
23738
+ );
23739
+ if (Array.isArray(temps) && temps.length > 0) {
23740
+ this.tab_menus = temps;
23741
+ } else {
23742
+ this.tab_menus = [
23743
+ {
23744
+ type: 1,
23745
+ name: "appsNew",
23746
+ pid: "0",
23747
+ path: "",
23748
+ uri: "",
23749
+ component: "EmptyLayout",
23750
+ meta: {
23751
+ title: "\u5E94\u7528\u5E7F\u573A\uFF08\u65B0)",
23752
+ icon: "apps-o"
23753
+ },
23754
+ extendProps: ""
23755
+ },
23756
+ {
23757
+ type: 1,
23758
+ name: "workBench",
23759
+ pid: "0",
23760
+ path: "",
23761
+ uri: "",
23762
+ component: "EmptyLayout",
23763
+ meta: {
23764
+ title: "\u5DE5\u4F5C\u53F0",
23765
+ icon: "home-o"
23766
+ },
23767
+ extendProps: ""
23768
+ },
23769
+ {
23770
+ type: 1,
23771
+ name: "user",
23772
+ pid: "0",
23773
+ path: "/",
23774
+ uri: "/",
23775
+ component: "EmptyLayout",
23776
+ meta: {
23777
+ title: "\u6211\u7684",
23778
+ icon: "user-o"
23779
+ },
23780
+ extendProps: ""
23781
+ }
23782
+ ];
23783
+ }
23784
+ console.log(this.tab_menus);
23785
+ },
23768
23786
  onChange(index2) {
23769
23787
  console.log(index2);
23770
23788
  },
@@ -33221,7 +33239,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
33221
33239
  }
33222
33240
  async function tryPluginLogin() {
33223
33241
  try {
33224
- token = await pluginLogin(store2);
33242
+ token = await pluginLogin(store2, router);
33225
33243
  store2.dispatch("loginSuccess", token);
33226
33244
  return token;
33227
33245
  } catch (e) {
@@ -33311,7 +33329,7 @@ const pluginLogin = (store2, router) => {
33311
33329
  replace: true
33312
33330
  });
33313
33331
  }
33314
- resolve(resp.token);
33332
+ reject(0);
33315
33333
  console.log("location.href", location.href);
33316
33334
  return;
33317
33335
  });