feat: 修改密码全局
All checks were successful
构建并部署前端到测试环境 / deploy (push) Successful in 56s

This commit is contained in:
luo
2026-09-28 11:17:39 +08:00
parent 015f990fb6
commit e79d599da1
12 changed files with 319 additions and 5 deletions

View File

@@ -6,7 +6,6 @@ import { BaseService } from '../BaseService'
import type {
LoginParams,
LoginData,
UserInfo,
UserInfoResponse,
RefreshTokenParams,
RefreshTokenData,
@@ -51,7 +50,9 @@ export class AuthService extends BaseService {
* @param params 修改密码参数
*/
static changePassword(params: ChangePasswordParams): Promise<BaseResponse> {
return this.put<BaseResponse>('/api/auth/password', params)
return this.put<BaseResponse>('/api/auth/password', params, {
requestOptions: { errorMessageMode: 'none' }
})
}
/**