@indfnd/common-mobile 1.0.69 → 1.0.71

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,16 @@
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.71](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.70...v1.0.71) (2026-03-20)
6
+
7
+
8
+ ### Features
9
+
10
+ * 湖北移动端兼容独立应用的模式 ([06f4198](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/06f4198ff8780cc4dd2125dc501d99e89abe6fbb))
11
+ * 湖北移动端首页bug修复 ([7dd80f1](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/7dd80f10a6ef4a77c9368200dc32f63c78ced6dd))
12
+
13
+ ### [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)
14
+
5
15
  ### [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)
6
16
 
7
17
 
@@ -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.68";
6
+ const version$2 = "1.0.70";
7
7
  const author$1 = "huxuetong";
8
8
  const publishConfig = {
9
9
  registry: "https://registry.npmjs.org/"
@@ -23541,14 +23541,14 @@ const __vue2_script$o = {
23541
23541
  };
23542
23542
  },
23543
23543
  mounted() {
23544
- var _a, _b;
23544
+ var _a, _b, _c;
23545
23545
  let menus = this.$store.getters.getMenuTreeList;
23546
23546
  let permissionList = this.$store.state.app.permissionList;
23547
23547
  let noShowPermissionIdList = permissionList.filter((item2) => item2.extendProps).map((item2) => ({
23548
23548
  key: item2.permissionId,
23549
23549
  parseResult: this.tryParseJson(item2.extendProps)
23550
23550
  })).filter((item2) => item2.parseResult.success && item2.parseResult.result.hideInAppCenter).map((item2) => item2.key);
23551
- if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
23551
+ if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_c = (_b = this.$config) == null ? void 0 : _b.systemDefaultConfig) == null ? void 0 : _c.isMobileSeparate) != "1") {
23552
23552
  let mobileMainApp = menus.find(
23553
23553
  (item2) => {
23554
23554
  var _a2;
@@ -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, _c;
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" && ((_c = (_b = this.$config) == null ? void 0 : _b.systemDefaultConfig) == null ? void 0 : _c.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
  },
@@ -28656,10 +28674,10 @@ const __vue2_script$g = {
28656
28674
  this.$store.commit("setMyAppsList", this.my_apps);
28657
28675
  },
28658
28676
  mounted() {
28659
- var _a, _b;
28677
+ var _a, _b, _c;
28660
28678
  this.my_apps = this.$store.getters.getMyAppsList;
28661
28679
  let menus = this.$store.getters.getMenuTreeList;
28662
- if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
28680
+ if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_c = (_b = this.$config) == null ? void 0 : _b.systemDefaultConfig) == null ? void 0 : _c.isMobileSeparate) != "1") {
28663
28681
  let mobileMainApp = menus.find(
28664
28682
  (item2) => {
28665
28683
  var _a2;
@@ -29121,13 +29139,13 @@ const __vue2_script$d = {
29121
29139
  this.isHb = location.pathname.includes("scyxweb");
29122
29140
  let retryCount = 0;
29123
29141
  let interval = setInterval(() => {
29124
- var _a, _b;
29142
+ var _a, _b, _c;
29125
29143
  retryCount++;
29126
29144
  let menus = this.$store.getters.getMenuTreeList || [];
29127
29145
  if (menus && menus.length > 0) {
29128
29146
  clearInterval(interval);
29129
29147
  console.log(`\u7B2C${retryCount}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`, menus);
29130
- if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
29148
+ if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_c = (_b = this.$config) == null ? void 0 : _b.systemDefaultConfig) == null ? void 0 : _c.isMobileSeparate) != "1") {
29131
29149
  let mobileMainApp = menus.find(
29132
29150
  (item2) => {
29133
29151
  var _a2;
@@ -29497,13 +29515,13 @@ const __vue2_script$c = {
29497
29515
  this.isHb = location.pathname.includes("scyxweb");
29498
29516
  let retryCount = 0;
29499
29517
  let interval = setInterval(() => {
29500
- var _a, _b;
29518
+ var _a, _b, _c;
29501
29519
  retryCount++;
29502
29520
  let menus = this.$store.getters.getMenuTreeList || [];
29503
29521
  if (menus && menus.length > 0) {
29504
29522
  clearInterval(interval);
29505
29523
  console.log(`\u7B2C${retryCount}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`, menus);
29506
- if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
29524
+ if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_c = (_b = this.$config) == null ? void 0 : _b.systemDefaultConfig) == null ? void 0 : _c.isMobileSeparate) != "1") {
29507
29525
  let mobileMainApp = menus.find(
29508
29526
  (item2) => {
29509
29527
  var _a2;
@@ -29907,13 +29925,13 @@ const __vue2_script$a = {
29907
29925
  let retryCount = 0;
29908
29926
  const MAX_RETRY2 = 50;
29909
29927
  let interval = setInterval(() => {
29910
- var _a, _b;
29928
+ var _a, _b, _c;
29911
29929
  retryCount++;
29912
29930
  let menus = this.$store.getters.getMenuTreeList || [];
29913
29931
  if (menus && menus.length > 0) {
29914
29932
  clearInterval(interval);
29915
29933
  console.log(`\u7B2C${retryCount}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`, menus);
29916
- if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
29934
+ if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_c = (_b = this.$config) == null ? void 0 : _b.systemDefaultConfig) == null ? void 0 : _c.isMobileSeparate) != "1") {
29917
29935
  let mobileMainApp = menus.find(
29918
29936
  (item2) => {
29919
29937
  var _a2;
@@ -30284,13 +30302,13 @@ const __vue2_script$8 = {
30284
30302
  let retryCount = 0;
30285
30303
  const MAX_RETRY2 = 50;
30286
30304
  let interval = setInterval(() => {
30287
- var _a2, _b;
30305
+ var _a2, _b, _c;
30288
30306
  retryCount++;
30289
30307
  let menus = this.$store.getters.getMenuTreeList || [];
30290
30308
  if (menus && menus.length > 0) {
30291
30309
  clearInterval(interval);
30292
30310
  console.log(`\u7B2C${retryCount}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`, menus);
30293
- if (((_a2 = this.$config) == null ? void 0 : _a2.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
30311
+ if (((_a2 = this.$config) == null ? void 0 : _a2.mainType) == "singleApp" && ((_c = (_b = this.$config) == null ? void 0 : _b.systemDefaultConfig) == null ? void 0 : _c.isMobileSeparate) != "1") {
30294
30312
  let mobileMainApp = menus.find(
30295
30313
  (item2) => {
30296
30314
  var _a3;
@@ -30647,13 +30665,13 @@ const __vue2_script$6 = {
30647
30665
  }
30648
30666
  },
30649
30667
  created() {
30650
- var _a, _b;
30668
+ var _a, _b, _c;
30651
30669
  this.isHb = location.pathname.includes("scyxweb");
30652
30670
  let menus = this.$store.getters.getMenuTreeList || [];
30653
30671
  if (!menus.length) {
30654
30672
  console.error("getMenuTreeList\u4E3A\u7A7A\uFF0C\u5728apps-center-new\u91CC");
30655
30673
  }
30656
- if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
30674
+ if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_c = (_b = this.$config) == null ? void 0 : _b.systemDefaultConfig) == null ? void 0 : _c.isMobileSeparate) != "1") {
30657
30675
  let mobileMainApp = menus.find(
30658
30676
  (item2) => {
30659
30677
  var _a2;
@@ -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
  });