Przeglądaj źródła

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

RuoYi 1 rok temu
rodzic
commit
9e1616b075
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/layout/components/Sidebar/SidebarItem.vue

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

@@ -16,8 +16,8 @@
       </template>
 
       <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"
         :item="child"
         :base-path="resolvePath(child.path)"