zmdms-webui 1.1.5 → 1.1.7

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.
@@ -153,10 +153,12 @@ function useSubMenuOpenKeys(userSubMenus, activeTab, options) {
153
153
  return false;
154
154
  }
155
155
  return subMenuVal.children.find(function (item) {
156
- var system = item.system, path = item.path;
156
+ var system = item.system;
157
157
  var prefix = getPrefixByAppId(system);
158
158
  // 二级菜单如果没有配置路由的 不需要跳转
159
- var newPath = path === "/" ? "/" : prefix ? "/".concat(prefix).concat(path) : path;
159
+ // const newPath =
160
+ // path === "/" ? "/" : prefix ? `/${prefix}${path}` : path;
161
+ var newPath = getNewPath(item, prefix);
160
162
  if (newPath === activeTab) {
161
163
  // currentSubMenu = { ...item };
162
164
  // 只打开当前级
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmdms-webui",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "private": false,
5
5
  "main": "dist/index.es.js",
6
6
  "module": "dist/index.es.js",