fix: bug total data position

This commit is contained in:
Warunee Tamkoo 2025-09-10 08:58:23 +07:00
parent fd0b78ecbc
commit 4347075d4a

View file

@ -117,6 +117,7 @@ async function fetchDataTable(id: string, level: number, action: boolean) {
})
.then(async (res) => {
const dataMain: PosMaster[] = [];
totalData.value = res.data.result.total;
totalPage.value = Math.ceil(res.data.result.total / reqMaster.pageSize);
res.data.result.data.forEach((e: PosMaster) => {
const p = e.positions;