feat: 后端用户密码哈希存储

This commit is contained in:
539943419 committed 2025-02-07 23:02:38 +08:00
1 parent 6e0a416422
commit 315916d027
10 files changed
+50 -31

No files matched your search

+9
View File
@@ -56,6 +56,15 @@ export default function useFetch() {
'Authorization': `Bearer ${userStore.token}`
}
}),
deletePost: (id: number) => $fetch('/api/posts/deletePost', {
body: {
id
},
method: 'POST',
headers: {
'Authorization': `Bearer ${userStore.token}`
}
})
},
user: {
login: (body: {