- 将type参数移至filters对象中,使用JSON.stringify格式化 - 优化查询参数结构,提高接口调用规范性
@@ -30,9 +30,11 @@ const HomeIconsPage: React.FC = () => {
queryFn: async () => {
const response = await homeIconClient.$get({
query: {
- type: activeTab,
page: 1,
- pageSize: 100
+ pageSize: 100,
+ filters: JSON.stringify({
+ type: activeTab
+ })
}
});
if (response.status !== 200) throw new Error('获取图标失败');