adminforth 2.4.0-next.223 → 2.4.0-next.224
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
isLoading.value = false;
|
|
238
238
|
}
|
|
239
239
|
dataResult.value = result;
|
|
240
|
-
} else {
|
|
240
|
+
} else if (typeof props.data === 'object' && Array.isArray(props.data)) {
|
|
241
241
|
const start = (currentPage.value - 1) * props.pageSize;
|
|
242
242
|
const end = start + props.pageSize;
|
|
243
243
|
dataResult.value = { data: props.data.slice(start, end), total: props.data.length };
|