element
element copied to clipboard
使用el-menu时刷新页面firebug控制台报错
[Vue warn]: Duplicate presence of slot "default" found in the same render tree - this will likely cause render errors.
(found in component
初学者麻烦给个建议,这个问题应该是我使用不当
<el-menu class="el-menu-vertical-demo" unique-opened router :class="{'toggled': toggled}" :default-active="$route.path">
<template v-for="(menu, index) in menus">
<el-submenu :index="index+''">
<template slot="title"><i class="el-submenu__icon el-icon-plus"></i><span class="el-submenu__name">{{menu.name}}</span></template>
<el-menu-item v-for="child in menu.children" :index="child.path"><span class="el-menu-item__name">{{child.name}}</span></el-menu-item>
</el-submenu>
</template>
</el-menu>
其中menus是后台获取的数据
并没有报错:http://jsfiddle.net/leopoldthecuber/LdrL8La2/
@Leopoldthecoder
补充
项目地址https://github.com/ElemeFE/element-dashboard
登录后使用火狐刷新页面firebug控制台有错,但是chrome控制台没错
补充 页面可以正常渲染,但是控制台报错
你好,因为本 issue 不符合我们的规范,所以被关闭了。请使用 issue-generator 提交 issue。相关信息:#3692。