jky-component-lib 0.0.72 → 0.0.73

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.
@@ -1,4 +1,4 @@
1
- const version = "0.0.72";
1
+ const version = "0.0.73";
2
2
  export {
3
3
  version
4
4
  };
@@ -88,7 +88,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
88
88
  });
89
89
  const buildMenuItem = (route2, parentPath = "") => {
90
90
  var _a, _b;
91
- const fullPath = parentPath ? `${parentPath}/${route2.path}` : route2.path;
91
+ let fullPath = "";
92
+ if (route2.path.startsWith(parentPath)) {
93
+ fullPath = route2.path;
94
+ } else {
95
+ fullPath = `${parentPath.replace(/\/$/, "")}/${route2.path}`;
96
+ }
92
97
  const normalizedPath = fullPath.startsWith("/") ? fullPath : `/${fullPath}`;
93
98
  const item = {
94
99
  index: normalizedPath,
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "0.0.72";
3
+ const version = "0.0.73";
4
4
  exports.version = version;
@@ -90,7 +90,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
90
90
  });
91
91
  const buildMenuItem = (route2, parentPath = "") => {
92
92
  var _a, _b;
93
- const fullPath = parentPath ? `${parentPath}/${route2.path}` : route2.path;
93
+ let fullPath = "";
94
+ if (route2.path.startsWith(parentPath)) {
95
+ fullPath = route2.path;
96
+ } else {
97
+ fullPath = `${parentPath.replace(/\/$/, "")}/${route2.path}`;
98
+ }
94
99
  const normalizedPath = fullPath.startsWith("/") ? fullPath : `/${fullPath}`;
95
100
  const item = {
96
101
  index: normalizedPath,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jky-component-lib",
3
3
  "type": "module",
4
- "version": "0.0.72",
4
+ "version": "0.0.73",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },