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.
43 lines
907 B
43 lines
907 B
import Vue from 'vue'
|
|
import App from './App'
|
|
import ZH from './utils/locales/zh.js'
|
|
import EN from './utils/locales/en.js'
|
|
import axios from './utils/axios.js'
|
|
import store from './store'
|
|
import uView from "uview-ui";
|
|
import VueClipboards from 'vue-clipboard2'
|
|
import VueI18n from 'vue-i18n'
|
|
Vue.config.productionTip = false
|
|
// 自定义底部导航栏
|
|
import tabBar from 'components/tabBar/tabBar.vue'
|
|
|
|
Vue.use(uView);
|
|
Vue.use(VueClipboards);
|
|
Vue.use(VueI18n);
|
|
Vue.prototype.$axios = axios
|
|
Vue.prototype.$store = store
|
|
Vue.config.productionTip = false
|
|
Vue.component('tab-bar', tabBar)
|
|
// Vue.prototype.$showDialog = true
|
|
App.mpType = 'app'
|
|
|
|
const i18n = new VueI18n({
|
|
// locale: store.state.language, // 默认选择的语言
|
|
// locale:'en',
|
|
locale:'zh-CN',
|
|
messages: {
|
|
'zh-CN': ZH,
|
|
'en': EN
|
|
}
|
|
})
|
|
|
|
Vue.prototype.$_i18n = i18n
|
|
|
|
|
|
|
|
const app = new Vue({
|
|
i18n,
|
|
store,
|
|
...App
|
|
})
|
|
app.$mount()
|
|
|