From fca1c8ed1dae34b276c3c13d3ed6ac6692e9852a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Thu, 12 Jun 2025 09:25:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=88=87=E6=8D=A2=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/i18n.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 等)