qdt-admin-layout 1.0.1 → 1.0.2
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/package.json
CHANGED
|
@@ -172,15 +172,13 @@ export default {
|
|
|
172
172
|
return menus.map((menu) => {
|
|
173
173
|
let children = [];
|
|
174
174
|
//弹出菜单显示父级信息;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
);
|
|
183
|
-
}
|
|
175
|
+
// 这里认为父级的深度应该+1
|
|
176
|
+
children = this.renderChildrenWithParentMenu(
|
|
177
|
+
h,
|
|
178
|
+
menu,
|
|
179
|
+
children,
|
|
180
|
+
depth + 1
|
|
181
|
+
);
|
|
184
182
|
// 一级菜单
|
|
185
183
|
return this.renderSubMenu(h, menu, children, depth);
|
|
186
184
|
});
|