Commit 94fd9faacdb7a72632c108e0b9a6bb858dbfe86d
1 parent
0c408370
处理人脸识别报错;
Showing
1 changed file
with
1 additions
and
1 deletions
src/mes/login/index.js
| @@ -141,7 +141,7 @@ const useLoginEvent = props => { | @@ -141,7 +141,7 @@ const useLoginEvent = props => { | ||
| 141 | const { masterData, companys } = props; | 141 | const { masterData, companys } = props; |
| 142 | // 新增方法:根据sName过滤configs | 142 | // 新增方法:根据sName过滤configs |
| 143 | const getConfigByName = (name, configs, sLanguage) => { | 143 | const getConfigByName = (name, configs, sLanguage) => { |
| 144 | - const configObj = configs.find(item => item.sName === name) || {}; | 144 | + const configObj = configs?.find(item => item.sName === name) || {}; |
| 145 | const showName = sLanguage === 'sChinese' ? configObj.sChinese : sLanguage ==='sEnglish' ? configObj.sEnglish : | 145 | const showName = sLanguage === 'sChinese' ? configObj.sChinese : sLanguage ==='sEnglish' ? configObj.sEnglish : |
| 146 | sLanguage === 'sBig5' ? configObj.sBig5 : configObj.sChinese; | 146 | sLanguage === 'sBig5' ? configObj.sBig5 : configObj.sChinese; |
| 147 | return showName; | 147 | return showName; |