You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

40 lines
788 B

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