实现修改密码,但引入了修改密码后无法点击窗口的bug

This commit is contained in:
2025-05-18 23:18:42 +08:00
parent 0d586f9aae
commit 2e16ffe42d
6 changed files with 197 additions and 83 deletions

View 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,
}),
})
}