perf: 调整
This commit is contained in:
@ -269,8 +269,8 @@ const getProfileInfo = async () => {
|
|||||||
accounts.value = enterprises;
|
accounts.value = enterprises;
|
||||||
|
|
||||||
if (enterprises.length > 0) {
|
if (enterprises.length > 0) {
|
||||||
if (enterprises.length === 1) {
|
|
||||||
enterpriseStore.setEnterpriseInfo(data.enterprises[0]);
|
enterpriseStore.setEnterpriseInfo(data.enterprises[0]);
|
||||||
|
if (enterprises.length === 1) {
|
||||||
handleUserLogin();
|
handleUserLogin();
|
||||||
} else {
|
} else {
|
||||||
// 多个企业时候需要弹窗让用户选择企业
|
// 多个企业时候需要弹窗让用户选择企业
|
||||||
|
|||||||
Reference in New Issue
Block a user