1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/dcloud-song-guessing-game-admin

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
main.js 871 Байт
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
anne-lxm Отправлено 08.08.2022 15:20 86ee16e
import App from './App'
import store from './store'
import plugin from './js_sdk/uni-admin/plugin'
import messages from './i18n/index.js'
const lang = uni.getLocale()
// #ifndef VUE3
import Vue from 'vue'
import VueI18n from 'vue-i18n'
Vue.config.productionTip = false
Vue.use(VueI18n)
// 通过选项创建 VueI18n 实例
const i18n = new VueI18n({
locale: lang, // 设置地区
messages, // 设置地区信息
})
Vue.use(plugin)
App.mpType = 'app'
const app = new Vue({
i18n,
store,
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
import { createI18n } from 'vue-i18n'
export function createApp() {
const app = createSSRApp(App)
const i18n = createI18n({
locale: lang,
messages
})
app.use(i18n)
app.use(plugin)
app.use(store)
return {
app
}
}
// #endif

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/dcloud-song-guessing-game-admin.git
git@api.gitlife.ru:oschina-mirror/dcloud-song-guessing-game-admin.git
oschina-mirror
dcloud-song-guessing-game-admin
dcloud-song-guessing-game-admin
master