11import { get } from './ajax'
22import { callHook } from '../init/lifecycle'
3- import { getParentPath } from '../route /util'
3+ import { getParentPath } from '../router /util'
44import { noop } from '../util/core'
55
66function loadNested ( path , file , next , vm , first ) {
@@ -9,7 +9,7 @@ function loadNested (path, file, next, vm, first) {
99
1010 if ( ! path ) return
1111
12- get ( vm . $ getFile( path + file ) )
12+ get ( vm . router . getFile ( path + file ) )
1313 . then ( next , _ => loadNested ( path , file , next , vm ) )
1414}
1515
@@ -22,7 +22,7 @@ export function fetchMixin (proto) {
2222 // Abort last request
2323 last && last . abort && last . abort ( )
2424
25- last = get ( this . $ getFile( path ) , true )
25+ last = get ( this . router . getFile ( path ) , true )
2626
2727 // Current page is html
2828 this . isHTML = / \. h t m l $ / g. test ( path )
@@ -47,7 +47,7 @@ export function fetchMixin (proto) {
4747 proto . _fetchCover = function ( ) {
4848 const { coverpage } = this . config
4949 const root = getParentPath ( this . route . path )
50- const path = this . $ getFile( root + coverpage )
50+ const path = this . router . getFile ( root + coverpage )
5151
5252 if ( this . route . path !== '/' || ! coverpage ) {
5353 this . _renderCover ( )
0 commit comments