From df7101540161e1835c6ebfabaa94cc9eb2617220 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 15 Feb 2026 01:07:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E9=92=89=E9=92=89=E7=99=BB=E5=BD=95=E7=9B=B4=E8=BF=9E=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/home/lovart-home.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/home/lovart-home.tsx b/components/home/lovart-home.tsx index e76834fc1..5bee5f718 100644 --- a/components/home/lovart-home.tsx +++ b/components/home/lovart-home.tsx @@ -813,7 +813,12 @@ export function LovartHome({ }; const handleDingTalkLogin = () => { - window.location.href = "/login"; + if (!canUseDingTalkLogin) { + toast.error("钉钉登录未启用"); + return; + } + setLoginDialogOpen(false); + window.location.href = "/api/auth/dingtalk/login"; }; const handleCreateDulupayOrder = async (packageId: string) => {