chore: change variable name

This commit is contained in:
Methapon Metanipat 2024-10-24 14:08:57 +07:00
parent f8673082c7
commit d3a6ac7187

View file

@ -18,13 +18,13 @@ export const useWorkflowTemplate = defineStore('workkflow-store', () => {
return res.data;
}
async function getWorkflowTemplateList(query?: {
async function getWorkflowTemplateList(params?: {
page?: number;
pageSize?: number;
}) {
const res = await api.get<PaginationResult<WorkflowTemplate>>(
'/workflow-template',
{ params: query },
{ params },
);
if (res.status >= 400) return null;