diff --git a/components/vc-recommend/vc-recommend.vue b/components/vc-recommend/vc-recommend.vue index 95b8833..1812b86 100644 --- a/components/vc-recommend/vc-recommend.vue +++ b/components/vc-recommend/vc-recommend.vue @@ -90,7 +90,11 @@ }) }, _loadRecommendProdcut: function() { - let _that = this; + let _that = this; + if(!_that.curCategoryId || _that.curCategoryId == -1){ + return ; + } + _that.communityId = getMallCommunityId(); let _data = { page: this.pagefrom+1,