File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export default {
41
41
frame ,
42
42
Object . assign (
43
43
{
44
- create : ( ) => {
44
+ create ( ) {
45
45
resolve ( toPage )
46
46
return toPage
47
47
}
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export default {
33
33
if ( this . $options . router ) {
34
34
this . __is_router__ = true
35
35
const router = this . $options . router
36
+ const self = this
36
37
37
38
patchGo ( router )
38
39
@@ -46,11 +47,8 @@ export default {
46
47
clearHistory : true
47
48
} ) . then ( ( ) => {
48
49
// Mount the root component (Should be <router-page>) to register router hooks
49
- this . $nextTick ( ( ) => {
50
- const placeholder = this . $document . createComment ( 'placeholder' )
51
-
52
- this . $mount ( placeholder )
53
- } )
50
+ const placeholder = Vue . $document . createComment ( 'placeholder' )
51
+ self . $mount ( placeholder )
54
52
} )
55
53
}
56
54
}
You can’t perform that action at this time.
0 commit comments