@indfnd/common-mobile 1.0.66 → 1.0.68

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,10 @@
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.68](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.67...v1.0.68) (2026-03-19)
6
+
7
+ ### [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)
8
+
5
9
  ### [1.0.66](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.65...v1.0.66) (2026-03-12)
6
10
 
7
11
  ### [1.0.65](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.64...v1.0.65) (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.65";
6
+ const version$2 = "1.0.67";
7
7
  const author$1 = "huxuetong";
8
8
  const publishConfig = {
9
9
  registry: "https://registry.npmjs.org/"
@@ -50,7 +50,7 @@ const dependencies$1 = {
50
50
  };
51
51
  const devDependencies$1 = {
52
52
  lodash: "4.17.21",
53
- "@indfnd/utils": "^0.1.36",
53
+ "@indfnd/utils": "^0.1.40",
54
54
  eslint: "^3.19.0",
55
55
  "eslint-config-prettier": "^8.5.0",
56
56
  "eslint-plugin-prettier": "^4.2.1",
@@ -23541,14 +23541,14 @@ const __vue2_script$o = {
23541
23541
  };
23542
23542
  },
23543
23543
  mounted() {
23544
- var _a;
23544
+ var _a, _b;
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") {
23551
+ if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
23552
23552
  let mobileMainApp = menus.find(
23553
23553
  (item2) => {
23554
23554
  var _a2;
@@ -23698,14 +23698,14 @@ const __vue2_script$n = {
23698
23698
  };
23699
23699
  },
23700
23700
  mounted() {
23701
- var _a;
23701
+ var _a, _b;
23702
23702
  let menus = this.$store.getters.getMenuTreeList;
23703
23703
  let permissionList = this.$store.state.app.permissionList;
23704
23704
  let noShowPermissionIdList = permissionList.filter((item2) => item2.extendProps).map((item2) => ({
23705
23705
  key: item2.permissionId,
23706
23706
  parseResult: this.tryParseJson(item2.extendProps)
23707
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") {
23708
+ if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
23709
23709
  let mobileMainApp = menus.find(
23710
23710
  (item2) => {
23711
23711
  var _a2;
@@ -28656,10 +28656,10 @@ const __vue2_script$g = {
28656
28656
  this.$store.commit("setMyAppsList", this.my_apps);
28657
28657
  },
28658
28658
  mounted() {
28659
- var _a;
28659
+ var _a, _b;
28660
28660
  this.my_apps = this.$store.getters.getMyAppsList;
28661
28661
  let menus = this.$store.getters.getMenuTreeList;
28662
- if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp") {
28662
+ if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
28663
28663
  let mobileMainApp = menus.find(
28664
28664
  (item2) => {
28665
28665
  var _a2;
@@ -29121,13 +29121,13 @@ const __vue2_script$d = {
29121
29121
  this.isHb = location.pathname.includes("scyxweb");
29122
29122
  let retryCount = 0;
29123
29123
  let interval = setInterval(() => {
29124
- var _a;
29124
+ var _a, _b;
29125
29125
  retryCount++;
29126
29126
  let menus = this.$store.getters.getMenuTreeList || [];
29127
29127
  if (menus && menus.length > 0) {
29128
29128
  clearInterval(interval);
29129
29129
  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") {
29130
+ if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
29131
29131
  let mobileMainApp = menus.find(
29132
29132
  (item2) => {
29133
29133
  var _a2;
@@ -29497,13 +29497,13 @@ const __vue2_script$c = {
29497
29497
  this.isHb = location.pathname.includes("scyxweb");
29498
29498
  let retryCount = 0;
29499
29499
  let interval = setInterval(() => {
29500
- var _a;
29500
+ var _a, _b;
29501
29501
  retryCount++;
29502
29502
  let menus = this.$store.getters.getMenuTreeList || [];
29503
29503
  if (menus && menus.length > 0) {
29504
29504
  clearInterval(interval);
29505
29505
  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") {
29506
+ if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
29507
29507
  let mobileMainApp = menus.find(
29508
29508
  (item2) => {
29509
29509
  var _a2;
@@ -29907,13 +29907,13 @@ const __vue2_script$a = {
29907
29907
  let retryCount = 0;
29908
29908
  const MAX_RETRY2 = 50;
29909
29909
  let interval = setInterval(() => {
29910
- var _a;
29910
+ var _a, _b;
29911
29911
  retryCount++;
29912
29912
  let menus = this.$store.getters.getMenuTreeList || [];
29913
29913
  if (menus && menus.length > 0) {
29914
29914
  clearInterval(interval);
29915
29915
  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") {
29916
+ if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
29917
29917
  let mobileMainApp = menus.find(
29918
29918
  (item2) => {
29919
29919
  var _a2;
@@ -30284,13 +30284,13 @@ const __vue2_script$8 = {
30284
30284
  let retryCount = 0;
30285
30285
  const MAX_RETRY2 = 50;
30286
30286
  let interval = setInterval(() => {
30287
- var _a2;
30287
+ var _a2, _b;
30288
30288
  retryCount++;
30289
30289
  let menus = this.$store.getters.getMenuTreeList || [];
30290
30290
  if (menus && menus.length > 0) {
30291
30291
  clearInterval(interval);
30292
30292
  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") {
30293
+ if (((_a2 = this.$config) == null ? void 0 : _a2.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
30294
30294
  let mobileMainApp = menus.find(
30295
30295
  (item2) => {
30296
30296
  var _a3;
@@ -30647,13 +30647,13 @@ const __vue2_script$6 = {
30647
30647
  }
30648
30648
  },
30649
30649
  created() {
30650
- var _a;
30650
+ var _a, _b;
30651
30651
  this.isHb = location.pathname.includes("scyxweb");
30652
30652
  let menus = this.$store.getters.getMenuTreeList || [];
30653
30653
  if (!menus.length) {
30654
30654
  console.error("getMenuTreeList\u4E3A\u7A7A\uFF0C\u5728apps-center-new\u91CC");
30655
30655
  }
30656
- if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp") {
30656
+ if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp" && ((_b = this.$config) == null ? void 0 : _b.isMobileSeparate) != "1") {
30657
30657
  let mobileMainApp = menus.find(
30658
30658
  (item2) => {
30659
30659
  var _a2;
@@ -33116,7 +33116,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
33116
33116
  window.sessionNotValidHandler = async function() {
33117
33117
  if (typeof window.Code != "undefined" || isHb) {
33118
33118
  try {
33119
- await pluginLogin(store2);
33119
+ await pluginLogin(store2, router);
33120
33120
  } catch (e) {
33121
33121
  console.log("pluginLogin e", e);
33122
33122
  if (isHb) {
@@ -33271,7 +33271,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
33271
33271
  });
33272
33272
  }
33273
33273
  let singleLoginPromiseMapping = {};
33274
- const pluginLogin = (store2) => {
33274
+ const pluginLogin = (store2, router) => {
33275
33275
  let code2 = getQueryVariable("code");
33276
33276
  let singleLoginPromise = singleLoginPromiseMapping[code2];
33277
33277
  if (singleLoginPromise) {
@@ -33298,8 +33298,19 @@ const pluginLogin = (store2) => {
33298
33298
  setTimeout(() => {
33299
33299
  console.log("before getUserDefaultUrl");
33300
33300
  getUserDefaultUrl().then((resp1) => {
33301
+ var _a;
33301
33302
  console.log("getUserDefaultUrl data", resp1);
33302
- location.href = resp1.data || "/hbwebchat/scyxweb/ind-mobile/workBench";
33303
+ if ((_a = resp1.data) == null ? void 0 : _a.includes("home")) {
33304
+ router.push({
33305
+ name: config.homeRouteName,
33306
+ replace: true
33307
+ });
33308
+ } else {
33309
+ router.push({
33310
+ name: "workBench",
33311
+ replace: true
33312
+ });
33313
+ }
33303
33314
  resolve(resp.token);
33304
33315
  console.log("location.href", location.href);
33305
33316
  return;