From 5c5ddc5a24a470e749ed9f1a69e952ee4af024c3 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Wed, 26 Feb 2025 17:33:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=8F=B8=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 3cdb1b3..e208bf1 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -59,7 +59,9 @@ const onSubmitLogin = async () => { const { data: result } = await appLoginAPI(loginForm) memberStore.setToken(result.access_token) const userResult = await getUserInfoAPI() - const { data: comResult } = await getCompanyListAPI() + const { data: res } = await getCompanyListAPI() + const comResult = res.filter((e) => e.isShow) + // console.log('🚀 ~ onSubmitLogin ~ comResult:', comResult) const userCompanyList = comResult.filter((e) => e.companyId == userResult.user.companyId) memberStore.setUserInfo(userResult.user) memberStore.setCompanyList(comResult) @@ -98,7 +100,9 @@ onMounted(async () => { memberStore.setToken(result.access_token) const userResult = await getUserInfoAPI() - const { data: comResult } = await getCompanyListAPI() + const { data: res } = await getCompanyListAPI() + const comResult = res.filter((e) => e.isShow) + // console.log('🚀 ~ onMounted ~ comResult:', comResult) const userCompanyList = comResult.filter( (e) => e.companyId == userResult.user.companyId, )