Commit d5d7e0e21a67d156f44efc8e2843c014d8970af3

Authored by zhiyangdu
1 parent 6b9ff314

全部商品调用判断shopid是否存在

src/components/tabBox/tabBox.vue
@@ -150,7 +150,7 @@ @@ -150,7 +150,7 @@
150 */ 150 */
151 shopRecommendGoods(page) { 151 shopRecommendGoods(page) {
152 // 判断必要参数 152 // 判断必要参数
153 - if (this.tabbar[2].shop_id) { 153 + if (this.tabbar&&this.tabbar[2]&&this.tabbar[2].shop_id) {
154 154
155 // 加载中 155 // 加载中
156 this.$set(this.paging.commodity, "loading", true); 156 this.$set(this.paging.commodity, "loading", true);