guhongwei 5 vuotta sitten
vanhempi
commit
f585aeeb56
1 muutettua tiedostoa jossa 2 lisäystä ja 5 poistoa
  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);