fix: 提交短链服务、sentry监控

This commit is contained in:
2025-09-04 06:18:10 -07:00
parent 3c615237e7
commit 57173a0221
13 changed files with 142 additions and 67 deletions
+2
View File
@@ -7,6 +7,7 @@ import { useCountDown } from 'ahooks';
import { useTranslations } from 'next-intl';
import { useEffect, useState } from 'react';
import { UseFormReturn } from 'react-hook-form';
import { toast } from 'sonner';
interface SendCodeProps {
type: 'email' | 'phone';
@@ -47,6 +48,7 @@ export default function SendCode({ type, params, form }: SendCodeProps) {
const setCodeTimer = () => {
const endTime = Date.now() + verify_code_interval * 1000;
setTargetDate(endTime);
toast.success(t('register.sendCode'));
localStorage.setItem(`verify_code_${type}`, endTime.toString());
};