@indfnd/common 1.1.23 → 1.1.25
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.es.js +9 -10
- package/dist/ind-common.umd.cjs +22 -22
- 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.1.25](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.24...v1.1.25) (2025-11-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 路由修复 ([7183b0f](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/7183b0f4a768191bc3cf6aeca0cae43f4078e989))
|
|
11
|
+
|
|
12
|
+
### [1.1.24](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.23...v1.1.24) (2025-11-20)
|
|
13
|
+
|
|
5
14
|
### [1.1.23](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.1.22...v1.1.23) (2025-11-20)
|
|
6
15
|
|
|
7
16
|
|
package/dist/ind-common.es.js
CHANGED
|
@@ -5460,7 +5460,7 @@ var lodash = { exports: {} };
|
|
|
5460
5460
|
})(lodash, lodash.exports);
|
|
5461
5461
|
var _ = lodash.exports;
|
|
5462
5462
|
const name$1 = "@indfnd/common";
|
|
5463
|
-
const version = "1.1.
|
|
5463
|
+
const version = "1.1.24";
|
|
5464
5464
|
const author = "huxuetong";
|
|
5465
5465
|
const publishConfig = {
|
|
5466
5466
|
registry: "https://registry.npmjs.org/"
|
|
@@ -71889,6 +71889,9 @@ function dealRoutePath(uri, microType) {
|
|
|
71889
71889
|
if (!uri.startsWith("/")) {
|
|
71890
71890
|
uri = `/${uri}`;
|
|
71891
71891
|
}
|
|
71892
|
+
if (uri.startsWith(`/${config$1.routerBase}`)) {
|
|
71893
|
+
uri = uri.replace(/^\/ind([^/]{1,})/, "");
|
|
71894
|
+
}
|
|
71892
71895
|
if (uri.includes("?")) {
|
|
71893
71896
|
uri = uri.split("?")[0];
|
|
71894
71897
|
}
|
|
@@ -71897,12 +71900,6 @@ function dealRoutePath(uri, microType) {
|
|
|
71897
71900
|
}
|
|
71898
71901
|
return uri;
|
|
71899
71902
|
}
|
|
71900
|
-
function dealRouterBase(path) {
|
|
71901
|
-
if (path.startsWith(`/${config$1.routerBase}`)) {
|
|
71902
|
-
path = path.replace(/^\/ind([^/]{1,})/, "");
|
|
71903
|
-
}
|
|
71904
|
-
return path;
|
|
71905
|
-
}
|
|
71906
71903
|
function generatorMenuTree(permissionList = []) {
|
|
71907
71904
|
permissionList = permissionList.filter((item2) => isMenuPermissionType(item2.type));
|
|
71908
71905
|
const menuTree = [];
|
|
@@ -71924,7 +71921,7 @@ function generator(menuData = []) {
|
|
|
71924
71921
|
item2.component = target2.component;
|
|
71925
71922
|
} else if (item2.path) {
|
|
71926
71923
|
if (window.loadComponentHandler) {
|
|
71927
|
-
item2.component = window.loadComponentHandler(
|
|
71924
|
+
item2.component = window.loadComponentHandler(item2.path, item2.name) || NotFound;
|
|
71928
71925
|
}
|
|
71929
71926
|
} else {
|
|
71930
71927
|
console.error(`\u627E\u4E0D\u5230\u7EC4\u4EF6\u5B9A\u4E49:${item2.component},\u8BF7\u6392\u67E5\u8D44\u6E90\u8DEF\u5F84\u914D\u7F6E\u662F\u5426\u6B63\u786E`);
|
|
@@ -71939,7 +71936,7 @@ function generator(menuData = []) {
|
|
|
71939
71936
|
}
|
|
71940
71937
|
function generatorRouteByPermission(item2) {
|
|
71941
71938
|
if (window.loadComponentHandler) {
|
|
71942
|
-
item2.component = window.loadComponentHandler(
|
|
71939
|
+
item2.component = window.loadComponentHandler(item2.path, item2.name) || NotFound;
|
|
71943
71940
|
} else {
|
|
71944
71941
|
console.error(`\u627E\u4E0D\u5230\u7EC4\u4EF6\u5B9A\u4E49:${item2.component},\u8BF7\u6392\u67E5\u8D44\u6E90\u8DEF\u5F84\u914D\u7F6E\u662F\u5426\u6B63\u786E`);
|
|
71945
71942
|
item2.component = NotFound;
|
|
@@ -71995,7 +71992,9 @@ async function renderRoutes({
|
|
|
71995
71992
|
var _a, _b, _c;
|
|
71996
71993
|
return ((_a = item2 == null ? void 0 : item2.uri) == null ? void 0 : _a.includes("?")) ? (_b = item2 == null ? void 0 : item2.uri) == null ? void 0 : _b.includes(to.path) : (_c = item2 == null ? void 0 : item2.uri) == null ? void 0 : _c.endsWith(to.path);
|
|
71997
71994
|
});
|
|
71998
|
-
let urlList = arr.
|
|
71995
|
+
let urlList = arr.filter((item2) => {
|
|
71996
|
+
return !item2.uri.includes("ibp-sc");
|
|
71997
|
+
}).map((item2) => item2.uri);
|
|
71999
71998
|
let urlMatchMin = _.minBy(urlList, (item2) => item2.length);
|
|
72000
71999
|
tempPer = arr.find((item2) => item2.uri === urlMatchMin);
|
|
72001
72000
|
}
|