Skip to content

Commit

Permalink
解决递归SubMenu时栈溢出的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lsgwr authored and gitee-org committed Nov 26, 2019
1 parent ed43479 commit 34e0995
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/frontend/src/components/MenuTree/Index.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<template>
<el-submenu v-if="menu.children && menu.children.length >= 1" :index="'' + menu.id">
<!-- 解决栈溢出的问题,element ui的官方bug,https://github.com/ElemeFE/element/issues/17391 -->
<!-- 和 https://github.com/ElemeFE/element/pull/17133 等新版本发布去掉popper-append-to-body即可 -->
<el-submenu v-if="menu.children && menu.children.length >= 1" :index="'' + menu.id" :popper-append-to-body="false">
<template slot="title">
<i :class="menu.icon"></i>
<span slot="title">{{menu.name}}</span>
Expand Down

0 comments on commit 34e0995

Please sign in to comment.