2025-08-11 11:45:18 +08:00
|
|
|
|
|
|
|
|
// #ifndef VUE3
|
|
|
|
|
import Vue from 'vue'
|
|
|
|
|
import App from './App'
|
2025-08-14 11:26:34 +08:00
|
|
|
import config from '@/until/config.js'
|
2025-08-11 11:45:18 +08:00
|
|
|
Vue.config.productionTip = false
|
|
|
|
|
|
|
|
|
|
App.mpType = 'app'
|
2025-08-14 11:26:34 +08:00
|
|
|
Vue.prototype.$config = config;
|
2025-08-11 11:45:18 +08:00
|
|
|
const app = new Vue({
|
|
|
|
|
...App
|
|
|
|
|
})
|
|
|
|
|
app.$mount()
|
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
|
|
// #ifdef VUE3
|
2025-08-14 11:26:34 +08:00
|
|
|
import { createSSRApp } from 'vue'
|
|
|
|
|
import config from '@/until/config.js'
|
2025-08-11 11:45:18 +08:00
|
|
|
import App from './App.vue'
|
|
|
|
|
export function createApp() {
|
2025-08-14 11:26:34 +08:00
|
|
|
const app = createSSRApp(App)
|
|
|
|
|
app.config.globalProperties.$config = config
|
2025-08-11 11:45:18 +08:00
|
|
|
return {
|
|
|
|
|
app
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// #endif
|