diff --git a/magic-boot-ui/src/components/magic/data/mb-table.vue b/magic-boot-ui/src/components/magic/data/mb-table.vue index 2668b59..ca55cff 100644 --- a/magic-boot-ui/src/components/magic/data/mb-table.vue +++ b/magic-boot-ui/src/components/magic/data/mb-table.vue @@ -212,11 +212,15 @@ function handlerData() { listLoading.value = true total.value = props.data.length var currPageData = [] - props.data.forEach((it, i) => { - if (i >= ((listCurrent.value - 1) * props.limit) && i < (listCurrent.value * props.limit) && currPageData.length < props.limit) { - currPageData.push(it) - } - }) + if(props.page){ + props.data.forEach((it, i) => { + if (i >= ((listCurrent.value - 1) * props.limit) && i < (listCurrent.value * props.limit) && currPageData.length < props.limit) { + currPageData.push(it) + } + }) + }else{ + currPageData = props.data + } list.value = currPageData props.done() listLoading.value = false