mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
fix(@vant/markdown-loader): anchor not work
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user