@lambo-design/pro-layout 1.0.0-beta.164 → 1.0.0-beta.166
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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
width="auto" @on-select="handleSelect">
|
|
7
7
|
<template v-for="item in menuList">
|
|
8
8
|
<template v-if="item.children && item.children.length === 1">
|
|
9
|
-
<ProLayoutSiderMenuItem v-if="showChildren(item)"
|
|
9
|
+
<ProLayoutSiderMenuItem v-if="showChildren(item) && collectedMenus.length > 0"
|
|
10
10
|
:key="`menu-${item.name}`"
|
|
11
11
|
:parent-item="item"
|
|
12
12
|
:collected-menus="collectedMenus"
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
</MenuItem>
|
|
20
20
|
</template>
|
|
21
21
|
<template v-else>
|
|
22
|
-
<ProLayoutSiderMenuItem v-if="showChildren(item)
|
|
22
|
+
<ProLayoutSiderMenuItem v-if="showChildren(item) && collectedMenus.length > 0"
|
|
23
|
+
:key="`menu-${item.name}`"
|
|
23
24
|
:parent-item="item" :server-context="serverContext"
|
|
24
25
|
:collected-menus="collectedMenus">
|
|
25
26
|
</ProLayoutSiderMenuItem>
|
|
@@ -258,7 +259,9 @@ export default {
|
|
|
258
259
|
const collectedMenus = resp.data.data;
|
|
259
260
|
console.log('ajax.collectedMenus',collectedMenus)
|
|
260
261
|
if (Array.isArray(collectedMenus)) {
|
|
262
|
+
console.log('!!!!')
|
|
261
263
|
this.collectedMenus = collectedMenus
|
|
264
|
+
console.log('if.collectMenus',this.collectedMenus)
|
|
262
265
|
// collectedMenus.forEach(menu => {
|
|
263
266
|
// // 使用 menu 的 name 属性作为键
|
|
264
267
|
// this.$set(this.isCollected, menu.name, true);
|