浏览代码

供应商主页修改

zhengjinyi 1 年之前
父节点
当前提交
c653038033
共有 1 个文件被更改,包括 3 次插入6 次删除
  1. 3 6
      src/main/resources/static/js/supplier-center/shop/mixins/categoryMixins.js

+ 3 - 6
src/main/resources/static/js/supplier-center/shop/mixins/categoryMixins.js

@@ -42,13 +42,10 @@ const categoryMixins = function () {
                 const _this = this;
                 const _this = this;
                 SupplierApi.getShopProductList(this.listQuery, function (res) {
                 SupplierApi.getShopProductList(this.listQuery, function (res) {
                     if (res.code === 0) {
                     if (res.code === 0) {
-                        console.log(res);
                         const data = res.data
                         const data = res.data
-                        if (data.results.length > 0) {
-                            _this.list = data.results
-                            _this.total = data.totalRecord
-                            _this.isLoading = false
-                        }
+                        _this.list = data.results
+                        _this.total = data.totalRecord
+                        _this.isLoading = false
                     }
                     }
                 });
                 });
             },
             },