优化代码

This commit is contained in:
wuxw 2024-05-12 01:23:10 +08:00
parent e8e98a1e6e
commit 413c490690

View File

@ -90,7 +90,11 @@
}) })
}, },
_loadRecommendProdcut: function() { _loadRecommendProdcut: function() {
let _that = this; let _that = this;
if(!_that.curCategoryId || _that.curCategoryId == -1){
return ;
}
_that.communityId = getMallCommunityId(); _that.communityId = getMallCommunityId();
let _data = { let _data = {
page: this.pagefrom+1, page: this.pagefrom+1,