File tree Expand file tree Collapse file tree 4 files changed +18
-18
lines changed Expand file tree Collapse file tree 4 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 1
1
import Vue from 'vue'
2
- import VueCompositionAPI from '@vue/composition-api'
2
+ import VueCompositionAPI , { createApp , h } from '@vue/composition-api'
3
3
4
4
import App from './App.vue'
5
5
6
6
Vue . use ( VueCompositionAPI )
7
7
8
- const app = new Vue ( {
9
- render : ( h ) => h ( App )
8
+ const app = createApp ( {
9
+ render : ( ) => h ( App )
10
10
} )
11
11
12
- app . $ mount( '#app' )
12
+ app . mount ( '#app' )
Original file line number Diff line number Diff line change 1
1
import Vue from 'vue'
2
- import VueCompositionAPI from '@vue/composition-api'
2
+ import VueCompositionAPI , { createApp , h } from '@vue/composition-api'
3
3
import { createPinia , PiniaVuePlugin } from 'pinia'
4
4
5
5
import App from './App.vue'
6
6
7
7
Vue . use ( VueCompositionAPI )
8
- Vue . use ( PiniaVuePlugin )
9
8
10
- const app = new Vue ( {
9
+ const app = createApp ( {
11
10
pinia : createPinia ( ) ,
12
- render : ( h ) => h ( App )
11
+ render : ( ) => h ( App )
13
12
} )
13
+ app . use ( PiniaVuePlugin )
14
14
15
- app . $ mount( '#app' )
15
+ app . mount ( '#app' )
Original file line number Diff line number Diff line change 1
1
import Vue from 'vue'
2
- import VueCompositionAPI from '@vue/composition-api'
2
+ import VueCompositionAPI , { createApp , h } from '@vue/composition-api'
3
3
import { createPinia , PiniaVuePlugin } from 'pinia'
4
4
5
5
import App from './App.vue'
6
6
import router from './router'
7
7
8
8
Vue . use ( VueCompositionAPI )
9
- Vue . use ( PiniaVuePlugin )
10
9
11
- const app = new Vue ( {
10
+ const app = createApp ( {
12
11
router,
13
12
pinia : createPinia ( ) ,
14
- render : ( h ) => h ( App )
13
+ render : ( ) => h ( App )
15
14
} )
15
+ app . use ( PiniaVuePlugin )
16
16
17
- app . $ mount( '#app' )
17
+ app . mount ( '#app' )
Original file line number Diff line number Diff line change 1
1
import Vue from 'vue'
2
- import VueCompositionAPI from '@vue/composition-api'
2
+ import VueCompositionAPI , { createApp , h } from '@vue/composition-api'
3
3
4
4
import App from './App.vue'
5
5
import router from './router'
6
6
7
7
Vue . use ( VueCompositionAPI )
8
8
9
- const app = new Vue ( {
9
+ const app = createApp ( {
10
10
router,
11
- render : ( h ) => h ( App )
11
+ render : ( ) => h ( App )
12
12
} )
13
13
14
- app . $ mount( '#app' )
14
+ app . mount ( '#app' )
You can’t perform that action at this time.
0 commit comments