mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-11-26 12:33:38 +08:00
feat: 使用后端的验证码
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user