bmp-layout 0.0.25-beta.8 → 0.0.25-beta.9
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/bmp-layout.es.js +6 -4
- package/bmp-layout.umd.js +2 -2
- package/package.json +1 -1
- package/style.css +1 -1
package/bmp-layout.es.js
CHANGED
|
@@ -1224,12 +1224,13 @@ function buildChildPaths(router) {
|
|
|
1224
1224
|
function prependPathToRoutes(routes, parentPath) {
|
|
1225
1225
|
if (!parentPath || !routes)
|
|
1226
1226
|
return routes;
|
|
1227
|
+
const base = parentPath === "/" ? "" : parentPath.replace(/\/$/, "");
|
|
1227
1228
|
return routes.map((route) => {
|
|
1228
1229
|
let newPath;
|
|
1229
1230
|
if (!route.path) {
|
|
1230
|
-
newPath =
|
|
1231
|
+
newPath = base || "/";
|
|
1231
1232
|
} else {
|
|
1232
|
-
newPath =
|
|
1233
|
+
newPath = base + (route.path.startsWith("/") ? route.path : `/${route.path}`);
|
|
1233
1234
|
}
|
|
1234
1235
|
if (newPath.length > 1 && newPath.endsWith("/")) {
|
|
1235
1236
|
newPath = newPath.slice(0, -1);
|
|
@@ -8743,7 +8744,8 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
|
|
|
8743
8744
|
router.push(normalizedPath);
|
|
8744
8745
|
} else {
|
|
8745
8746
|
const currentOrigin = window.location.origin;
|
|
8746
|
-
const
|
|
8747
|
+
const rawModulePath = ((_d = (_c = productList.value[activeProductIndex.value]) == null ? void 0 : _c.children[activeModuleIndex.value]) == null ? void 0 : _d.modulePath) || "";
|
|
8748
|
+
const modulePath = rawModulePath === "/" ? "" : rawModulePath;
|
|
8747
8749
|
const hasModulePrefix = modulePath && (fullPath === modulePath || fullPath.startsWith(modulePath + "/"));
|
|
8748
8750
|
const finalPath = hasModulePrefix ? normalizedPath : `${modulePath}${normalizedPath}`;
|
|
8749
8751
|
const targetUrl = `${currentOrigin}${finalPath.startsWith("/") ? finalPath : `/${finalPath}`}`;
|
|
@@ -9002,7 +9004,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
|
|
|
9002
9004
|
};
|
|
9003
9005
|
}
|
|
9004
9006
|
});
|
|
9005
|
-
const ProductServicePanel = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-
|
|
9007
|
+
const ProductServicePanel = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-f9a0a896"]]);
|
|
9006
9008
|
const _sfc_main$q = /* @__PURE__ */ Object.assign({ name: "Logo" }, {
|
|
9007
9009
|
__name: "Logo",
|
|
9008
9010
|
emits: ["logo-click"],
|