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
|
|
156
|
+
var system = item.system;
|
|
157
157
|
var prefix = getPrefixByAppId(system);
|
|
158
158
|
// 二级菜单如果没有配置路由的 不需要跳转
|
|
159
|
-
|
|
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
|
// 只打开当前级
|