Commit a5594091a01207039df3d2a3bf4c67195bc489cd

Authored by Aresn
Committed by GitHub
2 parents 07daf1b6 93cc14be

Merge pull request #713 from Becavalier/patch

[Fix] 使用 Breadcrumb 组件若初始化时没有设置子 Breadcrumb-item 则导航分隔符无法显示。
Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
src/components/breadcrumb/breadcrumb.vue
@@ -22,6 +22,9 @@ @@ -22,6 +22,9 @@
22 mounted () { 22 mounted () {
23 this.updateChildren(); 23 this.updateChildren();
24 }, 24 },
  25 + updated () {
  26 + this.updateChildren();
  27 + },
25 methods: { 28 methods: {
26 updateChildren () { 29 updateChildren () {
27 this.$children.forEach((child) => { 30 this.$children.forEach((child) => {