Browse Source

修改查询分页参数解构顺序

zhy 1 month ago
parent
commit
79c0b9eb30
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/cms/post.vue

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

@@ -99,7 +99,7 @@ export default {
     },
     // 查询文章
     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']);
       console.log(res, 'res');
       if (res.code == 200) {
         this.$set(this.mydata, 'articleList', res.rows)