From 9fa42490dbed12aba03be6af67deee8072ad7519 Mon Sep 17 00:00:00 2001 From: wuyouming666 <2265557248@qq.com> Date: 星期三, 13 九月 2023 14:23:53 +0800 Subject: [PATCH] 1、使用英文版 饿了么组件 全局生效 2、增加权限页面弹窗 提示等国际化语言 --- CanadaMes-ui/src/main.js | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/CanadaMes-ui/src/main.js b/CanadaMes-ui/src/main.js index 11d1158..07eff9c 100644 --- a/CanadaMes-ui/src/main.js +++ b/CanadaMes-ui/src/main.js @@ -2,6 +2,8 @@ import App from './App.vue' import router from './router' import ElementUI, {Message, MessageBox} from 'element-ui'; +import locale from 'element-ui/lib/locale/lang/en' // lang i18n + import 'element-ui/lib/theme-chalk/index.css'; // 瀵煎叆鍏ㄥ眬鏍峰紡琛� import './assets/css/global.css' @@ -23,7 +25,7 @@ const EventBus = new Vue(); Vue.prototype.$bus = EventBus; -Vue.use(ElementUI); +Vue.use(ElementUI,{locale}); Vue.config.productionTip = false; -- Gitblit v1.8.0