Commit 682f463ab57a5ae3466348198e8b02152a21237e
1 parent
4e7848fc
登录默认中文
Showing
1 changed file
with
2 additions
and
2 deletions
src/mes/login/index.js
| ... | ... | @@ -159,8 +159,8 @@ const useLoginEvent = props => { |
| 159 | 159 | sLanguage === 'sBig5' ? configObj.sBig5 : configObj.sChinese; |
| 160 | 160 | return showName; |
| 161 | 161 | }; |
| 162 | - const sLanguage = commonUtils.isNotEmptyArr(companys) ? companys[0].sLanguage : 'sEnglish'; | |
| 163 | - | |
| 162 | + const sLanguage = companys ? commonUtils.isNotEmptyArr(companys) ? companys[0].sLanguage : 'sEnglish' : 'sChinese'; | |
| 163 | + | |
| 164 | 164 | const pleaseSelectUser = getConfigByName('pleaseSelectUser', configsData, sLanguage); |
| 165 | 165 | |
| 166 | 166 | const pleaseInputPassword = getConfigByName('pleaseInputPassword', configsData, sLanguage); | ... | ... |