feat: 使用后端的验证码

This commit is contained in:
valarchie
2023-06-23 17:03:53 +08:00
parent 6130cd3149
commit 95a9675c7c
14 changed files with 90 additions and 25 deletions

View File

@@ -30,6 +30,7 @@ export const useImageVerify = (width = 120, height = 40) => {
};
};
/** 前端自己生成验证码 */
function randomNum(min: number, max: number) {
const num = Math.floor(Math.random() * (max - min) + min);
return num;