cuiqian2004
2025-03-20 d8872903e30f0a53abefcd279ae03258341e931f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import Vue from 'vue'
import App from './App'
import store from "./store";
// i18n
import messages from './locale'
import VueI18n from 'vue-i18n'
 
const i18nConfig = {
    locale: uni.getLocale(),
    messages
}
 
Vue.use(VueI18n)
Vue.config.productionTip = false
Vue.prototype.$store = store
 
App.mpType = 'app'
const i18n = new VueI18n(i18nConfig)
 
const app = new Vue({
    store,
    ...App,
    i18n,
})
 
app.$mount()