YY 2 năm trước cách đây
mục cha
commit
44a92127b0
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/views/selfShop/goodsRate/index.vue

+ 2 - 2
src/views/selfShop/goodsRate/index.vue

@@ -59,10 +59,10 @@ export default {
   },
   methods: {
     ...dictData({ getDict: 'query' }),
-    ...goods(['delete', 'fetch', 'update', 'create']),
+    ...goods(['query', 'delete', 'fetch', 'update', 'create']),
     async search({ skip = 0, limit = 10, ...info } = {}) {
       let condition = _.cloneDeep(this.searchForm);
-      let res = await this.getGoods({ skip, limit, ...condition, ...info, shop: this.user.shop.id });
+      let res = await this.query({ skip, limit, ...condition, ...info, shop: this.user.shop.id });
       if (this.$checkRes(res)) {
         this.$set(this, 'list', res.data);
         this.$set(this, 'total', res.total);