Explorar o código

优化模板查询参数

zhy hai 1 mes
pai
achega
e55d743a84
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/cms/commonTemplate.vue

+ 1 - 1
src/views/cms/commonTemplate.vue

@@ -78,7 +78,7 @@
       },
       // 查询文章
       async getarticle(e) {
-        const res = await cmsQuery({ ...e, pageNum: e?.pageNum ?? 1, pageSize: e?.pageSize ?? 10 }, 'article', this.$refs.dynamicForm.formdata['meta.catalog']);
+        const res = await cmsQuery({ pageNum: 1, pageSize: 10, ...e }, 'article', this.$refs.dynamicForm.formdata['meta.catalog']);
         if (res.code == 200) {
           this.$set(this.mydata, 'articleList', res.rows)
           this.$set(this.mydata, 'articleTotal', res.total)