[bugfix] IndexBar: should update when index-list updated (#3943)

This commit is contained in:
neverland
2019-07-23 20:50:08 +08:00
committed by GitHub
parent 012fd851c1
commit 4d0d54dbf4

View File

@@ -76,6 +76,12 @@ export default createComponent({
} }
}, },
watch: {
indexList() {
this.$nextTick(this.onScroll);
}
},
methods: { methods: {
onScroll() { onScroll() {
let scrollTop; let scrollTop;