From 0750f86b69763c6bec0e7e6807d248dd8567a87d Mon Sep 17 00:00:00 2001 From: lxl <lixuliang_hd@126.com> Date: 星期一, 19 九月 2022 16:16:23 +0800 Subject: [PATCH] 1111 --- src/main.js | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/main.js b/src/main.js index 8349af7..d886695 100644 --- a/src/main.js +++ b/src/main.js @@ -3,19 +3,23 @@ import router from "./router"; import store from "./store"; import "./assets/css/global.css"; +import i18n from "./assets/lang/index"; import axios from "./http"; import ElementUI from "element-ui"; +import locale from "element-ui/lib/locale/lang/en"; +// import locale from 'element-ui/lib/locale/lang/zh-CN' import "element-ui/lib/theme-chalk/index.css"; Vue.prototype.$echarts = echarts; import * as echarts from "echarts"; -Vue.use(ElementUI); +Vue.use(ElementUI, { locale }); Vue.prototype.$http = axios; Vue.prototype.$bus = new Vue(); Vue.config.productionTip = false; new Vue({ router, + i18n, store, render: (h) => h(App), }).$mount("#app"); -- Gitblit v1.9.3