浏览代码

fix(@six/hospital-guide): 修复请求接口分页字段取值问题

cc12458 3 天之前
父节点
当前提交
14b4f1eede
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      apps/hospital-guide/src/api/index.ts

+ 2 - 2
apps/hospital-guide/src/api/index.ts

@@ -21,11 +21,11 @@ export const http = createRequestClient({
     const result = { code, message, data, ...r };
 
     if (
-      result.data?.TotalPageCount !== void 0 &&
+      result.data?.TotalRecordCount !== void 0 &&
       Array.isArray(result.data?.Items)
     ) {
       const {
-        TotalPageCount: total,
+        TotalRecordCount: total,
         PageIndex: page,
         PageSize: size,
         Items: items,