import App from './App' // #ifdef H5 import jwx from 'weixin-js-sdk' import Vconsole from 'vconsole' // #endif // #ifndef VUE3 import Vue from 'vue' import './uni.promisify.adaptor' Vue.config.productionTip = false App.mpType = 'app' const app = new Vue({ ...App }) app.$mount() // #endif // #ifdef VUE3 import { createSSRApp } from 'vue' export function createApp() { const app = createSSRApp(App) // #ifdef H5 app.config.globalProperties.$wx = jwx if (process.env.NODE_ENV === 'development') { console.log('开发模式'); let vConsole = new Vconsole() app.use(vConsole) } // #endif return { app } } // #endif