mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-09-07 00:09:45 +08:00
fix(@vant/markdown-loader): anchor not work
This commit is contained in:
parent
d26282e542
commit
27c7d839c0
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@vant/markdown-loader",
|
"name": "@vant/markdown-loader",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"description": "Simple and fast vue markdown loader",
|
"description": "Simple and fast vue markdown loader",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
|
@ -29,8 +29,10 @@ export default {
|
|||||||
scrollToAnchor(event) {
|
scrollToAnchor(event) {
|
||||||
if (event.target.id) {
|
if (event.target.id) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: this.$route.path,
|
name: this.$route.name,
|
||||||
hash: event.target.id
|
query: {
|
||||||
|
anchor: event.target.id
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user