main.js 409 字节
Newer Older
1
import App from './App'
2 3
import i18n from './lang/i18n'

study夏羽's avatar
study夏羽 已提交
4
// uni.showModal = ()=>{};
5

6
// #ifndef VUE3
7 8 9
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
10 11
const app = new Vue({
	i18n,
12 13 14 15
	...App
})
app.$mount()
// #endif
DCloud_JSON's avatar
DCloud_JSON 已提交
16

17 18

// #ifdef VUE3
19
import {createSSRApp} from 'vue'
20 21 22

export function createApp() {
	const app = createSSRApp(App)
23
	app.use(i18n)
24 25 26
	return {app}
}
// #endif