Browse Source

浏览器版本

master
安虹睿 1 year ago
parent
commit
a24b6e6524
  1. 2
      Code/Fe/src/App.vue

2
Code/Fe/src/App.vue

@ -19,7 +19,7 @@ localStorage.setItem('menuHiddenConfig',window.SITE_CONFIG['menuHiddenConfig'])
// //
const language_brow = (navigator.language || navigator.browserLanguage) const language_brow = (navigator.language || navigator.browserLanguage)
console.log(21,language_brow) console.log(21,language_brow)
if(language_brow == 'zh'){ if(language_brow.indexOf('zh') >= 0){
localStorage.setItem('browserLanguage','zh-Hans') localStorage.setItem('browserLanguage','zh-Hans')
}else{ }else{
localStorage.setItem('browserLanguage','en') localStorage.setItem('browserLanguage','en')

Loading…
Cancel
Save