修复新首页钉钉登录直连授权入口
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-02-15 01:07:19 +08:00
parent fed71220cc
commit df71015401

View File

@ -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) => {