Carousel: fix async item not refreshing view issue (#3159)

pull/3223/head
杨奕 2017-03-03 08:31:27 +08:00 committed by baiyaaaaa
parent 2a11579dbc
commit df46ca5c42
1 changed files with 2 additions and 2 deletions

View File

@ -96,8 +96,8 @@ export default {
}, },
watch: { watch: {
items() { items(val) {
this.setActiveItem(0); if (val.length > 0) this.setActiveItem(0);
}, },
activeIndex(val, oldVal) { activeIndex(val, oldVal) {