zmdms-webui 0.0.30 → 0.0.32
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.
|
@@ -15,11 +15,12 @@ var MainMenu = function (props) {
|
|
|
15
15
|
var newPath = path === "/" ? "/" : prefix ? "/".concat(prefix).concat(path) : path;
|
|
16
16
|
// 根据type的类型做出不同的处理 这里只是留个入口 暂时没有特别的处理
|
|
17
17
|
if (menuItem.type === "index") {
|
|
18
|
-
|
|
18
|
+
var newPath_1 = prefix ? "/".concat(prefix).concat(path) : path;
|
|
19
|
+
return (jsx(Link, __assign({ to: newPath_1, onClick: function () {
|
|
19
20
|
addTab &&
|
|
20
21
|
addTab({
|
|
21
|
-
key:
|
|
22
|
-
path:
|
|
22
|
+
key: newPath_1,
|
|
23
|
+
path: newPath_1,
|
|
23
24
|
label: menuItem.name,
|
|
24
25
|
});
|
|
25
26
|
} }, { children: menuItem.name })));
|