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.
51 lines
1.0 KiB
51 lines
1.0 KiB
import App from './App'
|
|
import uView from "uview-ui";
|
|
import utils from './utils/index.js'
|
|
import store from './store'
|
|
import './utils/noScale.js'
|
|
import VueI18n from 'vue-i18n'
|
|
// 多国语言
|
|
import EN from './utils/language/en_US.js'
|
|
import ZH from './utils/language/zh_TW.js'
|
|
|
|
// #ifndef VUE3
|
|
import Vue from 'vue'
|
|
Vue.use(uView);
|
|
// 自定义顶部部导航栏
|
|
import tabBar from 'component/header.vue'
|
|
Vue.component('tab-bar', tabBar)
|
|
import VueClipboard from 'vue-clipboard2'
|
|
Vue.use(VueClipboard)
|
|
// 全局边框颜色变量
|
|
Vue.prototype.borderColor = '#E3E2EC'
|
|
Vue.use(VueI18n);
|
|
const i18n = new VueI18n({
|
|
locale: store.state.language, // 默认选择的语言
|
|
messages: {
|
|
'en_US': EN,
|
|
'zh_TW': ZH,
|
|
}
|
|
})
|
|
Vue.prototype.$utils = utils
|
|
Vue.prototype.$store = store
|
|
Vue.config.productionTip = false
|
|
App.mpType = 'app'
|
|
const app = new Vue({
|
|
i18n,
|
|
store,
|
|
...App
|
|
})
|
|
app.$mount()
|
|
// #endif
|
|
|
|
// #ifdef VUE3
|
|
import {
|
|
createSSRApp
|
|
} from 'vue'
|
|
export function createApp() {
|
|
const app = createSSRApp(App)
|
|
return {
|
|
app
|
|
}
|
|
}
|
|
// #endif
|
|
|