File tree 1 file changed +10
-10
lines changed
platform/nativescript/runtime
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
- import { start } from 'tns-core-modules/application'
1
+ import { start , on , launchEvent } from 'tns-core-modules/application'
2
2
import { warn } from 'core/util/index'
3
3
import { patch } from './patch'
4
4
import { mountComponent } from 'core/instance/lifecycle'
@@ -60,17 +60,17 @@ Vue.prototype.$start = function() {
60
60
let self = this
61
61
const AppConstructor = Vue . extend ( this . $options )
62
62
63
- start ( {
64
- create ( ) {
65
- if ( self . $el ) {
66
- self . $destroy ( )
67
- self = new AppConstructor ( )
68
- }
69
-
70
- self . $mount ( )
71
- return ensurePage ( self . $el , self )
63
+ on ( launchEvent , args => {
64
+ if ( self . $el ) {
65
+ self . $destroy ( )
66
+ self = new AppConstructor ( )
72
67
}
68
+
69
+ self . $mount ( )
70
+ args . root = ensurePage ( self . $el , self )
73
71
} )
72
+
73
+ start ( )
74
74
}
75
75
76
76
export default Vue
You can’t perform that action at this time.
0 commit comments