miscellaneous: Fix issue where the '/play' route fails to open after running 'yarn dev'

pull/22645/head
谭聪 2023-08-20 22:56:38 +08:00
parent 9640d0fb70
commit 1848e962fd
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import navConfig from './nav.config';
import langs from './i18n/route';
import playComponent from './play/index.vue';
const LOAD_MAP = {
'zh-CN': name => {
@ -165,7 +166,7 @@ langs.forEach(lang => {
route.push({
path: '/play',
name: 'play',
component: require('./play/index.vue')
component: playComponent
});
let userLanguage = localStorage.getItem('ELEMENT_LANGUAGE') || window.navigator.language || 'en-US';