Skip to content

Commit 2abe2d5

Browse files
Fix hash scroll bahavior test router base
1 parent c79a724 commit 2abe2d5

File tree

1 file changed

+1
-0
lines changed
  • examples/hash-scroll-behavior

1 file changed

+1
-0
lines changed

Diff for: examples/hash-scroll-behavior/app.js

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const scrollBehavior = (to, from, savedPosition) => {
5252

5353
const router = new VueRouter({
5454
mode: 'hash',
55+
base: __dirname,
5556
scrollBehavior,
5657
routes: [
5758
{ path: '/', component: Home, meta: { scrollToTop: true }},

0 commit comments

Comments
 (0)