实现修改密码,但引入了修改密码后无法点击窗口的bug
This commit is contained in:
10
tone-page-web/lib/api/user/updatePassword.ts
Normal file
10
tone-page-web/lib/api/user/updatePassword.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import fetcher from "../fetcher";
|
||||
|
||||
export async function updatePassword(password: string) {
|
||||
return fetcher(`/api/user/password`, {
|
||||
method: 'PUT',
|
||||
body: JSON.stringify({
|
||||
password: password,
|
||||
}),
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user