zmdms-webui 0.0.21 → 0.0.22

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.
@@ -12,7 +12,7 @@ var MainMenu = function (props) {
12
12
  // 获取当前菜单的系统id
13
13
  var system = menuItem.system, path = menuItem.path;
14
14
  var prefix = getPrefixByAppId(system);
15
- var newPath = prefix ? "/".concat(prefix).concat(path) : path;
15
+ var newPath = path === "/" ? "/" : prefix ? "/".concat(prefix).concat(path) : path;
16
16
  // 根据type的类型做出不同的处理 这里只是留个入口 暂时没有特别的处理
17
17
  if (menuItem.type === "index") {
18
18
  return (jsx(Link, __assign({ to: newPath, onClick: function () {