Browse Source

浏览器语言版本

noToken
安虹睿 1 year ago
parent
commit
1682fb15d5
  1. 2
      PC/InterFace.Dash/src/App.vue

2
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')

Loading…
Cancel
Save