feat: modify query parameter formatting in getNews API to replace spaces with plus signs

This commit is contained in:
Ardeman 2025-03-24 19:55:47 +08:00
parent 4ff1e23d25
commit fa5f7fbe92

View File

@ -55,7 +55,7 @@ export const getNews = async (parameters?: TParameters) => {
...(active && { active }),
...(limit && { limit }),
...(page && { page }),
...(query && { q: query }),
...(query && { q: query.split(' ').join('+') }),
},
})
return dataResponseSchema.parse(data)