refactor: 删除httpPostOriginal方法,通过options设置

This commit is contained in:
panda
2025-12-15 16:33:02 +08:00
parent 7bca7c62d9
commit 319942dc39
3 changed files with 4 additions and 18 deletions

View File

@@ -70,7 +70,7 @@ export interface AuthResetPasswordReqVO {
* @returns ICaptcha 验证码
*/
export function getCode(data: any) {
return http.postOriginal<ICaptcha>('/system/captcha/get', data)
return http.post<ICaptcha>('/system/captcha/get', data, null, null, { original: true })
}
/**
@@ -79,7 +79,7 @@ export function getCode(data: any) {
* @returns Promise 包含校验结果
*/
export function checkCaptcha(data: any) {
return http.postOriginal('/system/captcha/check', data)
return http.post<boolean>('/system/captcha/check', data, null, null, { original: true })
}
/** 使用账号密码登录 */