diff --git a/app/app/(auth)/login/user-login-core.tsx b/app/app/(auth)/login/user-login-core.tsx index a14d615a0..8ba0cb50e 100644 --- a/app/app/(auth)/login/user-login-core.tsx +++ b/app/app/(auth)/login/user-login-core.tsx @@ -21,6 +21,7 @@ import { import type { FormProps, TabsProps } from "antd"; import { SignInOptions } from "next-auth/react"; import { getSession } from "next-auth/react"; +import { FieldData } from "rc-field-form/es/interface"; export default function UserLoginCore() { const [loading, setLoading] = useState(false); @@ -153,7 +154,7 @@ export default function UserLoginCore() { 无权限,请确认用户名正确并等待审批
- 或联系管理员 + 或联系管理员 小司
), }); @@ -172,7 +173,7 @@ export default function UserLoginCore() { name: "password", errors: [result.error], }, - ]); + ] as FieldData[]); } if (loginProvider === "email") { loginForm.setFields([ @@ -180,7 +181,7 @@ export default function UserLoginCore() { name: "email", errors: [result.error], }, - ]); + ] as FieldData[]); } } console.log("response,", result);