fix(@vant/cli): doc preview page cannot scroll to the correct anchor (#7745)

Co-authored-by: caoenze <caoenze@didichuxing.com>
This commit is contained in:
AdamCaoQAQ
2020-12-15 21:05:02 +08:00
committed by GitHub
parent 7a2a9eb36d
commit 2ff10d3c5e
2 changed files with 2 additions and 4 deletions

View File

@@ -30,9 +30,7 @@ export default {
if (event.target.id) {
this.$router.push({
name: this.$route.name,
query: {
anchor: event.target.id
}
hash: '#' + event.target.id
})
}
}