12345678910111213141516171819202122232425262728293031323334353637 |
- 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: "zh-CN",
- // 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
|