import App from './App' // #ifndef VUE3 import Vue from 'vue' import './uni.promisify.adaptor' Vue.config.productionTip = false Vue.config.isCustomElement = tag => tag === 'image' || tag.startsWith('app-') App.mpType = 'app' const app = new Vue({ ...App }) app.$mount() // #endif // #ifdef VUE3 import { createSSRApp } from 'vue' // #ifdef H5 import 'vant/lib/index.css'; import vant from 'vant'; // #endif import uniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue' import uniDrawer from '@/uni_modules/uni-drawer/components/uni-drawer/uni-drawer.vue' export function createApp() { const app = createSSRApp(App) app.component(uniIcons) app.component(uniDrawer) // #ifdef H5 app.use(vant) // #endif return { app } } // #endif