فهرست منبع

fix(web): ProductAudit 兼容 records 分页格式

Xiaogang Liao 2 ماه پیش
والد
کامیت
6fffe32f14
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      cfc-web/src/views/admin/review/ProductAudit.vue

+ 1 - 1
cfc-web/src/views/admin/review/ProductAudit.vue

@@ -56,7 +56,7 @@ export default {
       this.loading = true
       try {
         const res = await getProductList({ status: this.statusFilter || undefined, page: 1, size: 50 })
-        this.list = res.data && res.data.list || res.data || []
+        this.list = res.data && res.data.records || res.data && res.data.list || res.data || []
       } catch (e) { this.$message.error('加载失败')
       } finally { this.loading = false }
     },