From c89941d435ad47f68e8577319d7d81ee52f51cc3 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 9 Mar 2024 16:51:42 +0800 Subject: [PATCH] =?UTF-8?q?CRM=EF=BC=9Acode=20review=20=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E6=80=BB=E9=87=8F=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Login/components/LoginForm.vue | 4 ++-- .../crm/statistics/customer/components/CustomerSummary.vue | 3 ++- src/views/crm/statistics/customer/index.vue | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/Login/components/LoginForm.vue b/src/views/Login/components/LoginForm.vue index 3ffb1305..e8e618dd 100644 --- a/src/views/Login/components/LoginForm.vue +++ b/src/views/Login/components/LoginForm.vue @@ -291,13 +291,13 @@ const doSocialLogin = async (type: number) => { await getTenantId() // 如果获取不到,则需要弹出提示,进行处理 if (!authUtil.getTenantId()) { - try { + try { const data = await message.prompt('请输入租户名称', t('common.reminder')) if (data?.action !== 'confirm') throw 'cancel' const res = await LoginApi.getTenantIdByName(data.value) authUtil.setTenantId(res) } catch (error) { - if(error === 'cancel') return + if (error === 'cancel') return } finally { loginLoading.value = false } diff --git a/src/views/crm/statistics/customer/components/CustomerSummary.vue b/src/views/crm/statistics/customer/components/CustomerSummary.vue index da50b30b..14f0b9b8 100644 --- a/src/views/crm/statistics/customer/components/CustomerSummary.vue +++ b/src/views/crm/statistics/customer/components/CustomerSummary.vue @@ -1,4 +1,4 @@ - +