lxp_Maxcess/utils/filters.js
2025-04-09 18:55:14 +08:00

11 lines
310 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Storage_LangId} from '@/config/const.js';
//根据语言Id获取语言名称
export function formatLangTextValue(dataArray){
let lang_Id = uni.getStorageSync(Storage_LangId);
let item = dataArray.find(p=>p.Key == lang_Id);
if(item != null){
return item.Value;
}
return dataArray[0].Value;
}