From 3a87f6a6458160721f1989c7c57d181eaf4dc548 Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Mon, 21 Jul 2025 17:07:27 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/login/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/components/login/index.vue b/src/views/components/login/index.vue index 99d4fdf..c1b5566 100644 --- a/src/views/components/login/index.vue +++ b/src/views/components/login/index.vue @@ -269,8 +269,8 @@ const getProfileInfo = async () => { accounts.value = enterprises; if (enterprises.length > 0) { + enterpriseStore.setEnterpriseInfo(data.enterprises[0]); if (enterprises.length === 1) { - enterpriseStore.setEnterpriseInfo(data.enterprises[0]); handleUserLogin(); } else { // 多个企业时候需要弹窗让用户选择企业