增加vConsole调试工具

This commit is contained in:
kk
2026-06-16 14:42:36 +08:00
parent 7a95facf30
commit a85117cca7
5 changed files with 236 additions and 13 deletions
+16 -11
View File
@@ -1,7 +1,8 @@
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import { initVConsole } from '@/utils/vconsole'
Vue.config.productionTip = false
@@ -11,15 +12,19 @@ const app = new Vue({
...App
})
app.$mount()
// #endif
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
import { createSSRApp } from 'vue'
import App from './App.vue'
import { initVConsole } from '@/utils/vconsole'
export function createApp() {
const app = createSSRApp(App)
return {
app
}
}
// #endif
// #endif
// 初始化 vConsole(开发环境)
initVConsole()