YY 2 년 전
부모
커밋
44a92127b0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);