diff --git a/js/i18n.js b/js/i18n.js index 321db3d..b55474d 100644 --- a/js/i18n.js +++ b/js/i18n.js @@ -237,8 +237,9 @@ document.querySelectorAll('.statusbtn > div').forEach(btn => { if(status=='all'){ status = '' } - Vehiclefn(this.currentLang,status) - locationfn(this.currentLang,status) + var currentLang = localStorage.getItem('lang')|| 'en'; + Vehiclefn(currentLang,status) + locationfn(currentLang,status) // console.log(status) // // 获取当前状态 // const status = this.className.split(' ')[0]; // 获取按钮的类名(statusall, status1, status2 等)