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