<body> <noscript> <strong>We're sorry but demo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> </noscript> <divid="app"></div> <!-- built files will be auto injected --> </body>
<script> if (typeofObject.assign != 'function') { Object.assign = function (target) { 'use strict'; if (target == null) { thrownewTypeError('Cannot convert undefined or null to object'); }
target = Object(target); for (var index = 1; index < arguments.length; index++) { var source = arguments[index]; if (source != null) { for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } } return target; }; } /** * 通过 Object.assign({}, COMMON.lang.en, ELEMENT.lang.en) 将 element-ui 和 * 系统自有的语言包合并 */ /* 设置中文语言 */ // Vue.config.lang = 'zh-cn' // Vue.locale('zh-cn', Object.assign({}, COMMON.lang.zhCN, ELEMENT.lang.zhCN)); /* 设置英文语言 */ Vue.config.lang = 'en' Vue.locale('en', Object.assign({}, COMMON.lang.en, ELEMENT.lang.en)); </script> </head>
<body> <noscript> <strong>We're sorry but demo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> </noscript> <divid="app"></div> <!-- built files will be auto injected --> </body>