1 Star 0 Fork 0

吴少建/租客管理

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.js 828 Bytes
一键复制 编辑 原始数据 按行查看 历史
Spacks Wu 提交于 2024-01-27 00:11 . init
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/love-yanxi/tenant-management.git
git@gitee.com:love-yanxi/tenant-management.git
love-yanxi
tenant-management
租客管理
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385