完成修改密码删除用户

This commit is contained in:
2025-05-12 12:47:27 +08:00
parent fbc9a4f140
commit 805901767c
9 changed files with 331 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
import fetcher from "../../fetcher";
export async function setPassword(userId: string, password: string) {
return fetcher(`/admin/user/${userId}/password`, {
return fetcher(`/api/admin/user/${userId}/password`, {
method: 'POST',
body: JSON.stringify({
password,