perf: 调整

This commit is contained in:
rd
2025-07-21 17:07:27 +08:00
parent 881a60f2a8
commit 3a87f6a645

View File

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