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;