feat: i18n与jetcache
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user