feat: update getNews API query handling and enhance social share button styles

This commit is contained in:
Ardeman
2025-03-25 00:21:09 +08:00
parent fa5f7fbe92
commit 724a14d741
3 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ export const getNews = async (parameters?: TParameters) => {
...(active && { active }),
...(limit && { limit }),
...(page && { page }),
...(query && { q: query.split(' ').join('+') }),
...(query && { q: query }),
},
})
return dataResponseSchema.parse(data)