fix(扫码登录): 修复登录页面初始化登录没有过滤判断xpack问题

This commit is contained in:
guoyuqi 2024-09-30 10:28:47 +08:00 committed by Craftsman
parent 4baf4fc042
commit 9feb97b392
1 changed files with 3 additions and 1 deletions

View File

@ -223,7 +223,9 @@ export default {
},
created: function () {
document.addEventListener('keydown', this.watchEnter);
this.initPlatformInfo();
if (hasLicense()) {
this.initPlatformInfo();
}
this.activeName = localStorage.getItem('loginType') || 'WE_COM';
let authenticate = localStorage.getItem('AuthenticateType');
if (authenticate === 'LOCAL' || authenticate === 'LDAP') {