bmp-layout 0.0.25-beta.15 → 0.0.25-beta.17
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 +5 -4
- package/bmp-layout.umd.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
package/bmp-layout.es.js
CHANGED
|
@@ -9007,10 +9007,10 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
|
|
|
9007
9007
|
const leafPath = record.leafPath || "";
|
|
9008
9008
|
if (record.moduleId === currentModuleId) {
|
|
9009
9009
|
const normalizedLeaf = leafPath.startsWith("/") ? leafPath : `/${leafPath}`;
|
|
9010
|
-
router.push(normalizedLeaf);
|
|
9011
9010
|
if (trackVisit)
|
|
9012
9011
|
emitMenuTrack(record);
|
|
9013
9012
|
closePanel();
|
|
9013
|
+
router.push(normalizedLeaf);
|
|
9014
9014
|
return;
|
|
9015
9015
|
}
|
|
9016
9016
|
const currentOrigin = window.location.origin;
|
|
@@ -9020,10 +9020,10 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
|
|
|
9020
9020
|
finalPath = hasPrefix ? finalPath : `${modulePath}/${finalPath.replace(/^\//, "")}`;
|
|
9021
9021
|
}
|
|
9022
9022
|
const targetUrl = `${currentOrigin}${finalPath.startsWith("/") ? finalPath : `/${finalPath}`}`;
|
|
9023
|
-
window.location.href = targetUrl;
|
|
9024
9023
|
if (trackVisit)
|
|
9025
9024
|
emitMenuTrack(record);
|
|
9026
9025
|
closePanel();
|
|
9026
|
+
window.location.href = targetUrl;
|
|
9027
9027
|
};
|
|
9028
9028
|
const extractMenuId = (item) => {
|
|
9029
9029
|
var _a2;
|
|
@@ -9098,6 +9098,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
|
|
|
9098
9098
|
const currentModuleId = permissionStore.getModuleId;
|
|
9099
9099
|
const selectedModuleId = (_b = (_a2 = productList.value[activeProductIndex.value]) == null ? void 0 : _a2.children[activeModuleIndex.value]) == null ? void 0 : _b.id;
|
|
9100
9100
|
if (selectedModuleId === currentModuleId) {
|
|
9101
|
+
closePanel();
|
|
9101
9102
|
router.push(normalizedPath);
|
|
9102
9103
|
} else {
|
|
9103
9104
|
const currentOrigin = window.location.origin;
|
|
@@ -9106,9 +9107,9 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
|
|
|
9106
9107
|
const hasModulePrefix = modulePath && (fullPath === modulePath || fullPath.startsWith(modulePath + "/"));
|
|
9107
9108
|
const finalPath = hasModulePrefix ? normalizedPath : `${modulePath}${normalizedPath}`;
|
|
9108
9109
|
const targetUrl = `${currentOrigin}${finalPath.startsWith("/") ? finalPath : `/${finalPath}`}`;
|
|
9110
|
+
closePanel();
|
|
9109
9111
|
window.location.href = targetUrl;
|
|
9110
9112
|
}
|
|
9111
|
-
closePanel();
|
|
9112
9113
|
}
|
|
9113
9114
|
};
|
|
9114
9115
|
const handleProductSelect = (index) => {
|
|
@@ -9537,7 +9538,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ name: "ProductServicePanel"
|
|
|
9537
9538
|
};
|
|
9538
9539
|
}
|
|
9539
9540
|
});
|
|
9540
|
-
const ProductServicePanel = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-
|
|
9541
|
+
const ProductServicePanel = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-a78d8e2d"]]);
|
|
9541
9542
|
const _sfc_main$q = /* @__PURE__ */ Object.assign({ name: "Logo" }, {
|
|
9542
9543
|
__name: "Logo",
|
|
9543
9544
|
emits: [
|