状态切换语言问题

This commit is contained in:
浅念
2025-06-12 09:25:03 +08:00
parent 47da7ea4ea
commit fca1c8ed1d
+3 -2
View File
@@ -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 等)