fix(@vant/markdown-loader): anchor not work

This commit is contained in:
chenjiahan
2020-11-21 20:34:00 +08:00
parent d26282e542
commit 27c7d839c0
2 changed files with 5 additions and 3 deletions

View File

@@ -29,8 +29,10 @@ export default {
scrollToAnchor(event) {
if (event.target.id) {
this.$router.push({
path: this.$route.path,
hash: event.target.id
name: this.$route.name,
query: {
anchor: event.target.id
}
})
}
}