@indfnd/common-mobile 1.0.5 → 1.0.7
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 +9 -0
- package/dist/ind-common-mobile.es.js +27 -15
- package/dist/ind-common-mobile.umd.cjs +7 -7
- package/package.json +1 -1
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.7](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.6...v1.0.7) (2025-12-30)
|
|
6
|
+
|
|
7
|
+
### [1.0.6](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.5...v1.0.6) (2025-12-30)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* 修复null.length报错 ([807ee2d](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/807ee2d66a8c71813a49f2e5ee580339c3df1abc))
|
|
13
|
+
|
|
5
14
|
### [1.0.5](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.4...v1.0.5) (2025-12-30)
|
|
6
15
|
|
|
7
16
|
|
|
@@ -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.
|
|
6
|
+
const version$2 = "1.0.6";
|
|
7
7
|
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
@@ -28298,8 +28298,9 @@ const __vue2_script$4 = {
|
|
|
28298
28298
|
}
|
|
28299
28299
|
},
|
|
28300
28300
|
mounted() {
|
|
28301
|
-
this.myAppList = JSON.parse(sessionStorage.getItem("myAppsList"));
|
|
28301
|
+
this.myAppList = JSON.parse(sessionStorage.getItem("myAppsList")) || [];
|
|
28302
28302
|
this.isHb = location.pathname.includes("scyxweb");
|
|
28303
|
+
let retryCount = 0;
|
|
28303
28304
|
let interval = setInterval(() => {
|
|
28304
28305
|
var _a;
|
|
28305
28306
|
retryCount++;
|
|
@@ -28539,7 +28540,7 @@ const __vue2_script$4 = {
|
|
|
28539
28540
|
},
|
|
28540
28541
|
computed: {
|
|
28541
28542
|
paginatedApps() {
|
|
28542
|
-
const apps = this.myAppList;
|
|
28543
|
+
const apps = this.myAppList || [];
|
|
28543
28544
|
const pageSize = 8;
|
|
28544
28545
|
const pages2 = [];
|
|
28545
28546
|
for (let i = 0; i < apps.length; i += pageSize) {
|
|
@@ -28645,17 +28646,17 @@ const __vue2_script$3 = {
|
|
|
28645
28646
|
};
|
|
28646
28647
|
},
|
|
28647
28648
|
mounted() {
|
|
28648
|
-
this.myAppList = JSON.parse(sessionStorage.getItem("myAppsList"));
|
|
28649
|
+
this.myAppList = JSON.parse(sessionStorage.getItem("myAppsList")) || [];
|
|
28649
28650
|
this.isHb = location.pathname.includes("scyxweb");
|
|
28650
|
-
let
|
|
28651
|
+
let retryCount = 0;
|
|
28651
28652
|
const MAX_RETRY2 = 50;
|
|
28652
28653
|
let interval = setInterval(() => {
|
|
28653
28654
|
var _a;
|
|
28654
|
-
|
|
28655
|
+
retryCount++;
|
|
28655
28656
|
let menus = this.$store.getters.getMenuTreeList || [];
|
|
28656
28657
|
if (menus && menus.length > 0) {
|
|
28657
28658
|
clearInterval(interval);
|
|
28658
|
-
console.log(`\u7B2C${
|
|
28659
|
+
console.log(`\u7B2C${retryCount}\u6B21\u5C1D\u8BD5\uFF0C\u6210\u529F\u83B7\u53D6\u5230 menus:`, menus);
|
|
28659
28660
|
if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp") {
|
|
28660
28661
|
let mobileMainApp = menus.find(
|
|
28661
28662
|
(item2) => {
|
|
@@ -28676,11 +28677,11 @@ const __vue2_script$3 = {
|
|
|
28676
28677
|
this.apps_menus = this.allApps_menus["\u5168\u90E8"];
|
|
28677
28678
|
this.apps_menus = simplifyMenuTree(this.apps_menus);
|
|
28678
28679
|
this.title = temps[0].meta.title;
|
|
28679
|
-
} else if (
|
|
28680
|
+
} else if (retryCount >= MAX_RETRY2) {
|
|
28680
28681
|
clearInterval(interval);
|
|
28681
28682
|
console.warn(`\u5C1D\u8BD5${MAX_RETRY2}\u6B21\u540E\u4ECD\u672A\u83B7\u53D6\u5230 menus`);
|
|
28682
28683
|
} else {
|
|
28683
|
-
console.log(`\u7B2C${
|
|
28684
|
+
console.log(`\u7B2C${retryCount}\u6B21\u5C1D\u8BD5\uFF0C\u7B49\u5F85\u83B7\u53D6 menus...`);
|
|
28684
28685
|
}
|
|
28685
28686
|
}, 100);
|
|
28686
28687
|
},
|
|
@@ -28781,7 +28782,7 @@ const __vue2_script$3 = {
|
|
|
28781
28782
|
},
|
|
28782
28783
|
computed: {
|
|
28783
28784
|
paginatedApps() {
|
|
28784
|
-
const apps = this.myAppList;
|
|
28785
|
+
const apps = this.myAppList || [];
|
|
28785
28786
|
const pageSize = 8;
|
|
28786
28787
|
const pages2 = [];
|
|
28787
28788
|
for (let i = 0; i < apps.length; i += pageSize) {
|
|
@@ -28876,7 +28877,10 @@ const __vue2_script$2 = {
|
|
|
28876
28877
|
created() {
|
|
28877
28878
|
var _a;
|
|
28878
28879
|
this.isHb = location.pathname.includes("scyxweb");
|
|
28879
|
-
let menus = this.$store.getters.getMenuTreeList;
|
|
28880
|
+
let menus = this.$store.getters.getMenuTreeList || [];
|
|
28881
|
+
if (!menus.length) {
|
|
28882
|
+
console.error("getMenuTreeList\u4E3A\u7A7A\uFF0C\u5728apps-center-new\u91CC");
|
|
28883
|
+
}
|
|
28880
28884
|
if (((_a = this.$config) == null ? void 0 : _a.mainType) == "singleApp") {
|
|
28881
28885
|
let mobileMainApp = menus.find(
|
|
28882
28886
|
(item2) => {
|
|
@@ -29272,6 +29276,7 @@ function listToMenuTree({ list: list2, menuTree, pageNode, parentId, crumbs, roo
|
|
|
29272
29276
|
return;
|
|
29273
29277
|
let appInfo = getSessionStorage("appInfo");
|
|
29274
29278
|
list2.forEach((item2) => {
|
|
29279
|
+
var _a;
|
|
29275
29280
|
const {
|
|
29276
29281
|
permissionId,
|
|
29277
29282
|
label: title4,
|
|
@@ -29290,7 +29295,7 @@ function listToMenuTree({ list: list2, menuTree, pageNode, parentId, crumbs, roo
|
|
|
29290
29295
|
let hideInIbp2 = false;
|
|
29291
29296
|
if (item2 && item2.extendProps) {
|
|
29292
29297
|
try {
|
|
29293
|
-
hideInIbp1 = JSON.parse(item2.extendProps).hideInIbp === "1";
|
|
29298
|
+
hideInIbp1 = ((_a = JSON.parse(item2.extendProps)) == null ? void 0 : _a.hideInIbp) === "1";
|
|
29294
29299
|
} catch (error) {
|
|
29295
29300
|
hideInIbp1 = false;
|
|
29296
29301
|
}
|
|
@@ -29301,7 +29306,7 @@ function listToMenuTree({ list: list2, menuTree, pageNode, parentId, crumbs, roo
|
|
|
29301
29306
|
const extension = JSON.parse(item2.extension);
|
|
29302
29307
|
if (extension.extendProps) {
|
|
29303
29308
|
const extendProps2 = typeof extension.extendProps === "string" ? JSON.parse(extension.extendProps) : extension.extendProps;
|
|
29304
|
-
if (extendProps2.hideInMenu == 1) {
|
|
29309
|
+
if ((extendProps2 == null ? void 0 : extendProps2.hideInMenu) == 1) {
|
|
29305
29310
|
hideInIbp2 = true;
|
|
29306
29311
|
}
|
|
29307
29312
|
}
|
|
@@ -30591,8 +30596,12 @@ const Cookie = {
|
|
|
30591
30596
|
};
|
|
30592
30597
|
async function renderRoutes({ router, store: store2, microType, allowPermissionList, routerOptionsBak }) {
|
|
30593
30598
|
var _a, _b;
|
|
30594
|
-
await store2.dispatch("getUserInfo");
|
|
30599
|
+
let userInfo = await store2.dispatch("getUserInfo");
|
|
30595
30600
|
await store2.dispatch("getAppListData");
|
|
30601
|
+
await store2.dispatch("getMyAppsList", {
|
|
30602
|
+
userId: userInfo.userId,
|
|
30603
|
+
funId: "store-my-app"
|
|
30604
|
+
});
|
|
30596
30605
|
const permissionData = await store2.dispatch("getPermissionData");
|
|
30597
30606
|
const sessionVersion = JSON.parse(((_b = (_a = getSessionStorage("appInfo")) == null ? void 0 : _a.extendProps) == null ? void 0 : _b.extendProps) || "{}");
|
|
30598
30607
|
const localVersion = getLocalStorage("versionInfo");
|
|
@@ -31166,7 +31175,10 @@ var app = {
|
|
|
31166
31175
|
appId = (appInfo == null ? void 0 : appInfo.appId) || "";
|
|
31167
31176
|
}
|
|
31168
31177
|
if (!appId) {
|
|
31169
|
-
let appInfo = appList.find((item2) =>
|
|
31178
|
+
let appInfo = appList.find((item2) => {
|
|
31179
|
+
var _a, _b;
|
|
31180
|
+
return ((_b = (_a = item2.application) == null ? void 0 : _a.extendProps) == null ? void 0 : _b.is_mobile_app) == "1";
|
|
31181
|
+
});
|
|
31170
31182
|
appId = appInfo.appId || "";
|
|
31171
31183
|
}
|
|
31172
31184
|
commit2("setAppInfo", appId);
|