feat: i18n与jetcache

This commit is contained in:
2023-11-16 10:04:27 +08:00
parent d366daeccc
commit ac856ed2f6
24 changed files with 476 additions and 114 deletions

View File

@@ -47,6 +47,8 @@ import { addDateRange, handleTree, parseTime, resetForm, selectDictLabel, select
import { getValueByCode } from '@/views/system/param/param'
import VueBus from 'vue-bus'
// 引入i18
import i18n from './i18n'
LogicFlow.use(Menu)
@@ -77,11 +79,19 @@ Vue.use(Element, {
size: 'mini' // set element-ui default size
})
Vue.prototype.$langPre = {
computedProp(suffix) {
console.log(suffix)
return localStorage.getItem('lang') + '_' + suffix
}
}
Vue.config.productionTip = false
new Vue({
el: '#app',
router,
store,
i18n,
render: h => h(App)
})