guhongwei 5 년 전
부모
커밋
f585aeeb56
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 5
      src/views/dictionary/parts/itemList.vue

+ 2 - 5
src/views/dictionary/parts/itemList.vue

@@ -71,11 +71,8 @@ export default {
   created() {},
   methods: {
     ...codeitem(['query', 'create', 'update', 'delete']),
-    async search({ skip = 0, category = this.category, limit = 10, ...info } = {}) {
-      // ...info, category: this.category
-      const res = await this.query(({ skip = 0, limit = 10, ...info } = {}));
-      console.log(res.total);
-
+    async search({ skip = 0, limit = 10, ...info } = {}) {
+      const res = await this.query({ ...info, category: this.category });
       if (this.$checkRes(res)) {
         this.$set(this, `list`, res.data);
         this.$set(this, `total`, res.total);