File tree Expand file tree Collapse file tree 1 file changed +27
-18
lines changed Expand file tree Collapse file tree 1 file changed +27
-18
lines changed Original file line number Diff line number Diff line change 1
1
import App from './App'
2
2
import store from './store'
3
-
4
- // #ifndef VUE3
3
+
4
+ // #ifndef VUE3
5
5
import Vue from 'vue'
6
6
Vue . config . productionTip = false
7
-
8
7
Vue . prototype . $store = store
8
+ Vue . prototype . $adpid = "1111111111"
9
9
Vue . prototype . $backgroundAudioData = {
10
- playing : false ,
11
- playTime : 0 ,
12
- formatedPlayTime : '00:00:00'
10
+ playing : false ,
11
+ playTime : 0 ,
12
+ formatedPlayTime : '00:00:00'
13
13
}
14
- Vue . prototype . $adpid = "1111111111"
15
-
16
14
App . mpType = 'app'
17
-
18
15
const app = new Vue ( {
19
- store,
20
- ...App
16
+ store,
17
+ ...App
21
18
} )
22
19
app . $mount ( )
23
20
// #endif
24
-
25
- // #ifdef VUE3
26
- import { createApp } from 'vue'
27
- const app = createApp ( App , { } )
28
- app . use ( store )
29
- app . mount ( '#app' )
30
- // #endif
21
+
22
+ // #ifdef VUE3
23
+ import {
24
+ createSSRApp
25
+ } from 'vue'
26
+ export function createApp ( ) {
27
+ const app = createSSRApp ( App )
28
+ app . use ( store )
29
+ app . config . globalProperties . $adpid = "1111111111"
30
+ app . config . globalProperties . $backgroundAudioData = {
31
+ playing : false ,
32
+ playTime : 0 ,
33
+ formatedPlayTime : '00:00:00'
34
+ }
35
+ return {
36
+ app
37
+ }
38
+ }
39
+ // #endif
You can’t perform that action at this time.
0 commit comments