@@ -13,7 +13,7 @@ const Async = () => Promise.resolve({ template: '<div>async</div>' })
1313const Hook : ComponentOptions < Vue > = {
1414 template : '<div>hook</div>' ,
1515
16- beforeRouteEnter ( to , from , next ) {
16+ beforeRouteEnter ( to , from , next ) {
1717 route . params
1818 next ( '/' )
1919 next ( { path : '/' } )
@@ -22,14 +22,14 @@ const Hook: ComponentOptions<Vue> = {
2222 } )
2323 } ,
2424
25- beforeRouteLeave ( to , from , next ) {
25+ beforeRouteLeave ( to , from , next ) {
2626 route . params
2727 next ( '/' )
2828 next ( { path : '/' } )
2929 next ( )
3030 } ,
3131
32- beforeRouteUpdate ( to , from , next ) {
32+ beforeRouteUpdate ( to , from , next ) {
3333 route . params
3434 next ( '/' )
3535 next ( { path : '/' } )
@@ -49,7 +49,7 @@ const router = new VueRouter({
4949 }
5050
5151 if ( from . path === '/offset' ) {
52- return { selector : '#foo' , offset : { x : 0 , y : 100 } }
52+ return { selector : '#foo' , offset : { x : 0 , y : 100 } }
5353 }
5454
5555 if ( to . path === '/child' ) {
@@ -79,7 +79,7 @@ const router = new VueRouter({
7979 asyncComponent : Async
8080 } ,
8181 meta : { auth : true } ,
82- beforeEnter ( to , from , next ) {
82+ beforeEnter ( to , from , next ) {
8383 to . params
8484 from . params
8585 next ( { name : 'home' } )
@@ -102,7 +102,7 @@ const router = new VueRouter({
102102 } ,
103103 { path : '/home' , alias : '/' } ,
104104 { path : '/foo' , props : true } ,
105- { path : '/bar' , props : { id : 123 } } ,
105+ { path : '/bar' , props : { id : 123 } } ,
106106 { path : '/baz' , props : ( route : Route ) => route . params } ,
107107 { path : '*' , redirect : '/' }
108108 ]
@@ -125,11 +125,11 @@ const matched: RouteRecord[] = route.matched
125125matched . forEach ( m => {
126126 const path : string = m . path
127127 const components : {
128- [ key : string ] : ComponentOptions < Vue > | typeof Vue | AsyncComponent
128+ [ key : string ] : ComponentOptions < Vue > | typeof Vue | AsyncComponent
129129 } = m . components
130130 const instances : { [ key : string ] : Vue } = m . instances
131131 const name : string | undefined | null = m . name
132- const parant : RouteRecord | undefined = m . parent
132+ const parent : RouteRecord | undefined = m . parent
133133 const redirect : RedirectOption | undefined = m . redirect
134134} )
135135
0 commit comments