123456789101112131415161718192021222324252627282930313233343536 |
- import App from './App'
- // #ifndef VUE3
- import Vue from 'vue'
- import './uni.promisify.adaptor'
- import uView from '@/uview-ui'
- import VueI18n from 'vue-i18n'
- import messages from "./commont/messages.js"
- Vue.use(VueI18n)
- Vue.config.productionTip = false
- // 多国语言包配置
- const i18n = new VueI18n ({
- locale:"en-US",
- messages
- })
- Vue.prototype._i18n = i18n
- Vue.use(uView)
- App.mpType = 'app'
- const app = new Vue({
- i18n,
- ...App
- })
- app.$mount()
- // #endif
- // #ifdef VUE3
- import { createSSRApp } from 'vue'
- export function createApp() {
- const app = createSSRApp(App)
- return {
- app
- }
- }
- // #endif
|