From 94fd9faacdb7a72632c108e0b9a6bb858dbfe86d Mon Sep 17 00:00:00 2001 From: zhangzhen <525765282@qq.com> Date: Tue, 18 Nov 2025 15:07:16 +0800 Subject: [PATCH] 处理人脸识别报错; --- src/mes/login/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mes/login/index.js b/src/mes/login/index.js index db96c87..9abc881 100644 --- a/src/mes/login/index.js +++ b/src/mes/login/index.js @@ -141,7 +141,7 @@ const useLoginEvent = props => { const { masterData, companys } = props; // 新增方法:根据sName过滤configs const getConfigByName = (name, configs, sLanguage) => { - const configObj = configs.find(item => item.sName === name) || {}; + const configObj = configs?.find(item => item.sName === name) || {}; const showName = sLanguage === 'sChinese' ? configObj.sChinese : sLanguage ==='sEnglish' ? configObj.sEnglish : sLanguage === 'sBig5' ? configObj.sBig5 : configObj.sChinese; return showName; -- libgit2 0.22.2