feat: 后端用户密码哈希存储
This commit is contained in:
1 parent
6e0a416422
commit
315916d027
10 files changed
+50
-31
No files matched your search
@@ -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: {
|
||||
|
||||
Reference in new issue
Block a user