补充上传协议和实名认证
This commit is contained in:
@@ -51,6 +51,10 @@ export default function AgreementDialog({
|
||||
toast.error("手持身份证必须上传!")
|
||||
return
|
||||
}
|
||||
if (file.size > 30 * 1024 * 1024) {
|
||||
toast.error("文件过大,仅限30M")
|
||||
return
|
||||
}
|
||||
|
||||
setSubmitting(true)
|
||||
const res = await uploadAgreement({ describe: describe.trim(), file })
|
||||
@@ -203,7 +207,7 @@ export default function AgreementDialog({
|
||||
|
||||
<DialogFooter>
|
||||
<Button
|
||||
onClick={() => void handleSubmit()}
|
||||
onClick={() => handleSubmit()}
|
||||
disabled={submitting}
|
||||
className="w-full bg-linear-to-r from-blue-500 to-cyan-400 text-white hover:opacity-90"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user