重构:移动源码到 src/ 目录,支持 CLI 构建

This commit is contained in:
kk
2026-06-26 17:55:48 +08:00
parent a85117cca7
commit 437764c9d2
348 changed files with 8914 additions and 40210 deletions
+30
View File
@@ -0,0 +1,30 @@
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import { initVConsole } from '@/utils/vconsole'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
import { initVConsole } from '@/utils/vconsole'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif
// 初始化 vConsole(开发环境)
initVConsole()