🎨 updated comment code framework / add comment verification

This commit is contained in:
landaiqing
2024-09-26 01:15:29 +08:00
parent e4b9214840
commit 96ae754efd
22 changed files with 1997 additions and 1258 deletions

View File

@@ -1,7 +1,7 @@
import {service} from "@/utils/alova/service.ts";
/**
* 获取验证码图片数据
* 获取旋转验证码图片数据
*/
export const getRotatedCaptchaData = () => {
return service.Get('/api/captcha/rotate/get', {
@@ -29,3 +29,14 @@ export const checkRotatedCaptcha = (angle: any, key: any) => {
);
};
/**
* 获取滑动验证码图片数据
*/
export const getSlideCaptchaDataApi = () => {
return service.Get('/api/captcha/slide/generate', {
meta: {
ignoreToken: false
},
});
};