[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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