Skip to content
This repository was archived by the owner on Oct 5, 2019. It is now read-only.

Commit 2e78726

Browse files
committed
Watch and auto update for indexes
1 parent 981a2da commit 2e78726

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/list-index.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@
5252
this.f7ListIndex.destroy();
5353
}
5454
},
55+
watch: {
56+
indexes() {
57+
if (!this.f7ListIndex) return;
58+
this.f7ListIndex.params.indexes = this.indexes;
59+
this.update();
60+
},
61+
},
5562
methods: {
5663
update() {
5764
if (!this.f7ListIndex) return;

0 commit comments

Comments
 (0)