From 78d57d6acc36403365d0f77c5fda9a1397910fb0 Mon Sep 17 00:00:00 2001 From: landaiqing <3517283258@qq.com> Date: Sun, 5 May 2024 02:22:08 +0800 Subject: [PATCH] fix: crypto.randomUUID is not a function --- src/api/captcha/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/captcha/index.ts b/src/api/captcha/index.ts index 60f352c..f4dea6d 100644 --- a/src/api/captcha/index.ts +++ b/src/api/captcha/index.ts @@ -1,5 +1,6 @@ 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