feat: only show active only when select flow

This commit is contained in:
Methapon2001 2024-12-17 13:44:50 +07:00
parent 2debf3b6e9
commit 79d132f49e
2 changed files with 2 additions and 0 deletions

View file

@ -43,6 +43,7 @@ const { getOptions, setFirstValue, getSelectedOption, filter } =
const ret = await getList({
query,
...props.params,
activeOnly: true,
});
if (ret) return ret.result;
},

View file

@ -24,6 +24,7 @@ export const useWorkflowTemplate = defineStore('workflow-store', () => {
pageSize?: number;
query?: string;
status?: Status;
activeOnly?: boolean;
}) {
const res = await api.get<PaginationResult<WorkflowTemplate>>(
'/workflow-template',