27 lines
507 B
JavaScript
27 lines
507 B
JavaScript
|
|
|
||
|
|
// #ifndef VUE3
|
||
|
|
import Vue from 'vue'
|
||
|
|
import App from './App'
|
||
|
|
import config from '@/until/config.js'
|
||
|
|
Vue.config.productionTip = false
|
||
|
|
|
||
|
|
App.mpType = 'app'
|
||
|
|
Vue.prototype.$config = config;
|
||
|
|
const app = new Vue({
|
||
|
|
...App
|
||
|
|
})
|
||
|
|
app.$mount()
|
||
|
|
// #endif
|
||
|
|
|
||
|
|
// #ifdef VUE3
|
||
|
|
import { createSSRApp } from 'vue'
|
||
|
|
import config from '@/until/config.js'
|
||
|
|
import App from './App.vue'
|
||
|
|
export function createApp() {
|
||
|
|
const app = createSSRApp(App)
|
||
|
|
app.config.globalProperties.$config = config
|
||
|
|
return {
|
||
|
|
app
|
||
|
|
}
|
||
|
|
}
|
||
|
|
// #endif
|