This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* 认证模块 API
|
||||
*/
|
||||
import { get, post } from '@/utils/request'
|
||||
import { get, post, put } from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 登录请求参数
|
||||
@@ -104,8 +104,5 @@ export function refreshToken(refresh_token: string) {
|
||||
* PUT /api/auth/password
|
||||
*/
|
||||
export function changePassword(data: ChangePasswordParams) {
|
||||
return post<void>('/api/auth/password', {
|
||||
data,
|
||||
method: 'PUT',
|
||||
})
|
||||
return put<void>('/api/auth/password', { data })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user