Skip to content
This repository was archived by the owner on May 12, 2020. It is now read-only.

Commit f2ac573

Browse files
committed
feat(router): set default scrollBehavior
1 parent b61dc41 commit f2ac573

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/router/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ Vue.use(Router)
1010
* `PERMISSION/index` processing.
1111
*/
1212
export default new Router({
13+
mode: 'hash',
14+
scrollBehavior: () => ({ y: 0 }),
1315
routes: constantRoutes
1416
})

0 commit comments

Comments
 (0)