feat: 添加登出和修改密码的API

This commit is contained in:
2025-12-18 17:09:29 +08:00
parent fa4a31a6ff
commit 90d36d4cfb
2 changed files with 18 additions and 0 deletions

View File

@@ -49,4 +49,8 @@ export async function loginBySms(phone: string, code: string) {
code,
})
});
}
export async function logout() {
return clientFetch('/api/auth/logout', { method: 'POST' });
}