perf: 登陆后获取企业信息

This commit is contained in:
rd
2025-07-21 17:04:25 +08:00
parent 923337b025
commit 881a60f2a8

View File

@ -267,10 +267,10 @@ const getProfileInfo = async () => {
let enterprises = data['enterprises'];
mobileNumber.value = data['mobile'];
accounts.value = enterprises;
enterpriseStore.setEnterpriseInfo(data);
if (enterprises.length > 0) {
if (enterprises.length === 1) {
enterpriseStore.setEnterpriseInfo(data.enterprises[0]);
handleUserLogin();
} else {
// 多个企业时候需要弹窗让用户选择企业