Browse Source

优化控制台提示路由重复问题

RuoYi 1 year ago
parent
commit
9e1616b075
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/layout/components/Sidebar/SidebarItem.vue

+ 2 - 2
src/layout/components/Sidebar/SidebarItem.vue

@@ -16,8 +16,8 @@
       </template>
       </template>
 
 
       <sidebar-item
       <sidebar-item
-        v-for="child in item.children"
-        :key="child.path"
+        v-for="(child, index) in item.children"
+        :key="child.path + index"
         :is-nest="true"
         :is-nest="true"
         :item="child"
         :item="child"
         :base-path="resolvePath(child.path)"
         :base-path="resolvePath(child.path)"