Explorar o código

传参 页数和条数的字段

wangn %!s(int64=5) %!d(string=hai) anos
pai
achega
83e0ad0c82
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ghs/src/views/item/list.vue

+ 1 - 1
ghs/src/views/item/list.vue

@@ -168,7 +168,7 @@ export default {
       this.app = app
 
       let getItem = () => {
-        return this.$service.product.list({ classId: this.classId, showPage:1})
+        return this.$service.product.list({ classId: this.classId, page: 1, pageSize: 20 })
       }
       ctx.service({
         page: getItem