diff --git a/src/api/captcha/index.ts b/src/api/captcha/index.ts index f4dea6d..9c0e087 100644 --- a/src/api/captcha/index.ts +++ b/src/api/captcha/index.ts @@ -1,6 +1,5 @@ import type { TicketInfoType, TokenInfoType } from 'react-rotate-captcha' import { handle } from './canvas' -import * as crypto from 'crypto' import wallhaven from '@/assets/images/wallhaven.jpg' export type ActionType = { code: 0 | 1 @@ -82,7 +81,7 @@ export async function verify(token: string, deg: number): Promise= 0 && success ? {