refactor: 02 => screen.xs fetch scroll

This commit is contained in:
puriphatt 2025-01-31 14:22:44 +07:00
parent 17b527c078
commit 07f0c0d47b
2 changed files with 12 additions and 28 deletions

View file

@ -267,7 +267,7 @@ async function fetchWorkflowList(mobileFetch?: boolean) {
page: mobileFetch ? 1 : workflowPage.value,
pageSize: mobileFetch
? workflowData.value.length +
(pageState.total - workflowData.value.length === 0 ? 1 : 0)
(pageState.total === workflowData.value.length ? 1 : 0)
: workflowPageSize.value,
query: pageState.inputSearch,
status: