Commit 04337968e13db30f6fada45d79fb5a3c6e6917a4
1 parent
31182c69
fixed Badge bug
fixed Badge bug
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/badge/badge.vue
@@ -68,7 +68,7 @@ | @@ -68,7 +68,7 @@ | ||
68 | alone: false | 68 | alone: false |
69 | }; | 69 | }; |
70 | }, | 70 | }, |
71 | - compiled () { | 71 | + mounted () { |
72 | const child_length = this.$refs.badge.children.length; | 72 | const child_length = this.$refs.badge.children.length; |
73 | if (child_length === 1) { | 73 | if (child_length === 1) { |
74 | this.alone = true; | 74 | this.alone = true; |