Merge pull request #713 from Becavalier/patch
[Fix] 使用 Breadcrumb 组件若初始化时没有设置子 Breadcrumb-item 则导航分隔符无法显示。
This commit is contained in:
commit
a5594091a0
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,9 @@
|
|||
mounted () {
|
||||
this.updateChildren();
|
||||
},
|
||||
updated () {
|
||||
this.updateChildren();
|
||||
},
|
||||
methods: {
|
||||
updateChildren () {
|
||||
this.$children.forEach((child) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue