element icon indicating copy to clipboard operation
element copied to clipboard

使用el-menu时刷新页面firebug控制台报错

Open maxiaoguang64 opened this issue 9 years ago • 3 comments

[Vue warn]: Duplicate presence of slot "default" found in the same render tree - this will likely cause render errors. (found in component ) http://localhost:8080/app.js line 724 > eval Line 521

初学者麻烦给个建议,这个问题应该是我使用不当

          <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是后台获取的数据

maxiaoguang64 avatar Feb 25 '17 09:02 maxiaoguang64

并没有报错:http://jsfiddle.net/leopoldthecuber/LdrL8La2/

Leopoldthecoder avatar Feb 25 '17 10:02 Leopoldthecoder

qq 20170225182634 @Leopoldthecoder
补充 项目地址https://github.com/ElemeFE/element-dashboard 登录后使用火狐刷新页面firebug控制台有错,但是chrome控制台没错

补充 页面可以正常渲染,但是控制台报错

maxiaoguang64 avatar Feb 25 '17 10:02 maxiaoguang64

你好,因为本 issue 不符合我们的规范,所以被关闭了。请使用 issue-generator 提交 issue。相关信息:#3692。

element-bot avatar Apr 04 '17 06:04 element-bot