From 3f4e9cc50fc531b443e69bfde3fbeda022509042 Mon Sep 17 00:00:00 2001 From: Pan Date: Fri, 15 Sep 2017 13:45:09 +0800 Subject: [PATCH] refine: convert chinese to english --- src/main.js | 3 ++- src/views/layout/Levelbar.vue | 4 ++-- src/views/page/form.vue | 44 +++++++++++++++++------------------ 3 files changed, 26 insertions(+), 25 deletions(-) diff --git a/src/main.js b/src/main.js index 3562169..32acf35 100644 --- a/src/main.js +++ b/src/main.js @@ -1,13 +1,14 @@ import Vue from 'vue' import ElementUI from 'element-ui' import 'element-ui/lib/theme-default/index.css' +import locale from 'element-ui/lib/locale/lang/en' import App from './App' import router from './router' import store from './store' import '@/icons' // icon import '@/permission' // 权限 -Vue.use(ElementUI) +Vue.use(ElementUI, { locale }) Vue.config.productionTip = false diff --git a/src/views/layout/Levelbar.vue b/src/views/layout/Levelbar.vue index cc7f20f..e34d56c 100644 --- a/src/views/layout/Levelbar.vue +++ b/src/views/layout/Levelbar.vue @@ -21,8 +21,8 @@ export default { getBreadcrumb() { let matched = this.$route.matched.filter(item => item.name) const first = matched[0] - if (first && (first.name !== '首页' || first.path !== '')) { - matched = [{ name: '首页', path: '/' }].concat(matched) + if (first && (first.name !== 'Home' || first.path !== '')) { + matched = [{ name: 'Home', path: '/' }].concat(matched) } this.levelList = matched } diff --git a/src/views/page/form.vue b/src/views/page/form.vue index 14c3006..890557a 100644 --- a/src/views/page/form.vue +++ b/src/views/page/form.vue @@ -1,47 +1,47 @@