set scrollnav
This commit is contained in:
parent
b553ef8e16
commit
4c1af63c91
|
@ -13,6 +13,13 @@ const View = r => require.ensure([], () => r(require('../views/dataView/index.vu
|
|||
Vue.use(Router)
|
||||
|
||||
export default new Router({
|
||||
scrollBehavior (to, from, savedPosition) {
|
||||
if (to.hash) {
|
||||
return {
|
||||
selector: to.hash
|
||||
}
|
||||
}
|
||||
},
|
||||
routes: [
|
||||
{
|
||||
path: '/demo',
|
||||
|
|
Loading…
Reference in New Issue