原因:v-for时,key值不唯一(一般出现在 v-for循环生成列表,对key值处理不当时)
解决办法:
找到出错的目录:
源代码
<sidebar-item v-for="route in permission_routes" :key="route.path" :item="route" :base-path="route.path" />
解决:
<sidebar-item v-for="(route, index) in permission_routes" :key="index + route.path" :item="route" :base-path="route.path" />