feat: 完成用户鉴权相关api
This commit is contained in:
1 parent
79cc9c34d6
commit
4c69f57aaa
22 files changed
+903
-68
No files matched your search
@@ -42,7 +42,8 @@ const getData = async () => {
|
||||
if (cache) {
|
||||
return cache as postItem[]
|
||||
}
|
||||
const res = await $fetch('/api/posts/getPostList')
|
||||
const response = await $fetch('/api/posts/getPostList')
|
||||
const res = response.data
|
||||
store.setCache('posts', res)
|
||||
return res
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user