增加vConsole调试工具
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user