diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue
index 2d49dd87..82f6b78f 100644
--- a/src/layout/components/Sidebar/SidebarItem.vue
+++ b/src/layout/components/Sidebar/SidebarItem.vue
@@ -21,6 +21,7 @@
class="nest-menu"
/>
+
@@ -57,6 +58,12 @@ export default {
return {}
},
methods: {
+ // addNewTask() {
+ // this.item.children.push({
+ // name: "Task 2",
+ // path: ""
+ // })
+ // },
hasOneShowingChild(children = [], parent) {
const showingChildren = children.filter(item => {
if (item.hidden) {
@@ -67,6 +74,7 @@ export default {
return true
}
})
+ // console.log(showingChildren)
// When there is only one child router, the child router is displayed by default
if (showingChildren.length === 1) {
diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index fb014a23..5b2c16c5 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -15,6 +15,7 @@