@xizs/nuxt-antui 0.0.44 → 0.0.45

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.
@@ -212,9 +212,9 @@ export default defineComponent({
212
212
  }
213
213
  }
214
214
  }
215
- pagination.total = res.meta.pagination.total
216
- pagination.pageSize = res.meta.pagination.per_page||res.meta.pagination.perPage
217
- pagination.page = res.meta.pagination.current_page||res.meta.pagination.currentPage
215
+ pagination.total = res.meta?.pagination?.total
216
+ pagination.pageSize = res.meta?.pagination?.per_page||res.meta?.pagination?.perPage
217
+ pagination.page = res.meta?.pagination?.current_page||res.meta?.pagination?.currentPage
218
218
  props.attribute.reqData = res
219
219
  props.attribute.metaTableData = JSON.parse(JSON.stringify(res.list))
220
220
  props.attribute.tableData = res.list
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xizs/nuxt-antui",
3
3
  "type": "module",
4
- "version": "0.0.44",
4
+ "version": "0.0.45",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",