import App from './App' import messages from './locale/index.js' let i18nConfig = { locale: uni.getLocale(), // 获取已设置的语言 messages } // #ifndef VUE3 import Vue from 'vue' import './uni.promisify.adaptor' Vue.config.productionTip = false App.mpType = 'app' import VueI18n from 'vue-i18n' Vue.use(VueI18n) const i18n = new VueI18n(i18nConfig) const app = new Vue({ ...App, i18n }) app.$mount() // #endif import uView from '@/uni_modules/uview-ui' Vue.use(uView) // #ifdef VUE3 import { createSSRApp } from 'vue' export function createApp() { const app = createSSRApp(App) return { app } } // #endif