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; return res.data;
} }
async function getWorkflowTemplateList(query?: { async function getWorkflowTemplateList(params?: {
page?: number; page?: number;
pageSize?: number; pageSize?: number;
}) { }) {
const res = await api.get<PaginationResult<WorkflowTemplate>>( const res = await api.get<PaginationResult<WorkflowTemplate>>(
'/workflow-template', '/workflow-template',
{ params: query }, { params },
); );
if (res.status >= 400) return null; if (res.status >= 400) return null;