Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Commit 385361a

Browse files
committed
fixed scroll bugs at encoded title (close #5)
1 parent baa8973 commit 385361a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

patches/@vuepress+core+1.6.0.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/node_modules/@vuepress/core/lib/client/app.js b/node_modules/@vuepress/core/lib/client/app.js
2+
index 85b27d7..39a5dcc 100644
3+
--- a/node_modules/@vuepress/core/lib/client/app.js
4+
+++ b/node_modules/@vuepress/core/lib/client/app.js
5+
@@ -77,7 +77,7 @@ export async function createApp (isServer) {
6+
return false
7+
}
8+
return {
9+
- selector: to.hash
10+
+ selector: decodeURIComponent(to.hash)
11+
}
12+
} else {
13+
return { x: 0, y: 0 }

0 commit comments

Comments
 (0)