fixed Badge bug

fixed Badge bug
This commit is contained in:
梁灏 2017-03-10 09:50:12 +08:00
parent 31182c69bb
commit 04337968e1

View file

@ -68,7 +68,7 @@
alone: false
};
},
compiled () {
mounted () {
const child_length = this.$refs.badge.children.length;
if (child_length === 1) {
this.alone = true;