We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d0443d commit aeb33b1Copy full SHA for aeb33b1
src/main.js
@@ -4,10 +4,9 @@ import Cookies from 'js-cookie'
4
5
import 'normalize.css/normalize.css' // a modern alternative to CSS resets
6
7
-import elementLocale from 'element-ui/lib/locale/lang/en'
8
-
9
import Element from 'element-ui'
10
import './styles/element-variables.scss'
+import enLang from 'element-ui/lib/locale/lang/en'// 如果使用中文语言包请默认支持,无需额外引入,请删除该依赖
11
12
import '@/styles/index.scss' // global css
13
@@ -36,7 +35,7 @@ if (process.env.NODE_ENV === 'production') {
36
35
37
Vue.use(Element, {
38
size: Cookies.get('size') || 'medium', // set element-ui default size
39
- locale: elementLocale
+ locale: enLang // 如果使用中文,无需设置,请删除
40
})
41
42
// register global utility filters
0 commit comments