This commit is contained in:
yziiy
2025-08-14 11:26:34 +08:00
parent e33b97fc90
commit f66cc10bf2
20 changed files with 834 additions and 817 deletions

10
main.js
View File

@@ -2,11 +2,11 @@
// #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
})
@@ -14,10 +14,12 @@ app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
import { createSSRApp } from 'vue'
import config from '@/until/config.js'
import App from './App.vue'
export function createApp() {
const app = createSSRApp(App)
const app = createSSRApp(App)
app.config.globalProperties.$config = config
return {
app
}