|
|
|
@ -38,6 +38,9 @@ import VueMeta from 'vue-meta'
|
|
|
|
|
// 字典数据组件
|
|
|
|
|
import DictData from '@/components/DictData'
|
|
|
|
|
|
|
|
|
|
import i18n from './lang'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 全局方法挂载
|
|
|
|
|
Vue.prototype.getDicts = getDicts
|
|
|
|
|
Vue.prototype.getConfigKey = getConfigKey
|
|
|
|
@ -73,7 +76,8 @@ DictData.install()
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
Vue.use(Element, {
|
|
|
|
|
size: Cookies.get('size') || 'medium' // set element-ui default size
|
|
|
|
|
size: Cookies.get('size') || 'medium', // set element-ui default size
|
|
|
|
|
i18n: (key, value) => i18n.t(key, value)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
@ -82,5 +86,6 @@ new Vue({
|
|
|
|
|
el: '#app',
|
|
|
|
|
router,
|
|
|
|
|
store,
|
|
|
|
|
render: h => h(App)
|
|
|
|
|
render: h => h(App),
|
|
|
|
|
i18n
|
|
|
|
|
})
|
|
|
|
|