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)
|
Vue.use(Router)
|
||||||
|
|
||||||
export default new Router({
|
export default new Router({
|
||||||
|
scrollBehavior (to, from, savedPosition) {
|
||||||
|
if (to.hash) {
|
||||||
|
return {
|
||||||
|
selector: to.hash
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: '/demo',
|
path: '/demo',
|
||||||
|
|
Loading…
Reference in New Issue