mirror of https://github.com/ElemeFE/element
miscellaneous: Fix issue where the '/play' route fails to open after running 'yarn dev'
parent
9640d0fb70
commit
1848e962fd
|
@ -1,5 +1,6 @@
|
||||||
import navConfig from './nav.config';
|
import navConfig from './nav.config';
|
||||||
import langs from './i18n/route';
|
import langs from './i18n/route';
|
||||||
|
import playComponent from './play/index.vue';
|
||||||
|
|
||||||
const LOAD_MAP = {
|
const LOAD_MAP = {
|
||||||
'zh-CN': name => {
|
'zh-CN': name => {
|
||||||
|
@ -165,7 +166,7 @@ langs.forEach(lang => {
|
||||||
route.push({
|
route.push({
|
||||||
path: '/play',
|
path: '/play',
|
||||||
name: 'play',
|
name: 'play',
|
||||||
component: require('./play/index.vue')
|
component: playComponent
|
||||||
});
|
});
|
||||||
|
|
||||||
let userLanguage = localStorage.getItem('ELEMENT_LANGUAGE') || window.navigator.language || 'en-US';
|
let userLanguage = localStorage.getItem('ELEMENT_LANGUAGE') || window.navigator.language || 'en-US';
|
||||||
|
|
Loading…
Reference in New Issue