diff --git a/PC/InterFace.Dash/src/App.vue b/PC/InterFace.Dash/src/App.vue index 8595665..336d582 100644 --- a/PC/InterFace.Dash/src/App.vue +++ b/PC/InterFace.Dash/src/App.vue @@ -20,7 +20,7 @@ localStorage.setItem('menuHiddenConfig',window.SITE_CONFIG['menuHiddenConfig']) // 获取浏览器语言 const language_brow = (navigator.language || navigator.browserLanguage) console.log(21,language_brow) -if(language_brow.indexOf('zh')){ +if(language_brow.indexOf('zh') >= 0){ localStorage.setItem('browserLanguage','zh-Hans') }else{ localStorage.setItem('browserLanguage','en')