標(biāo)準(zhǔn)版5.2中,使用了商品分類的第三種樣式后,會出現(xiàn)從其它頁面再點(diǎn)“分類”后商品不自動加載的問題,我找了一下代碼,
goods_cate.vue中
if (status == 3) {
if (this.isLogin) {
this.$refs.classThree.getCartNum();
this.$refs.classThree.getCartList(1);
this.$refs.classThree.tempArr = [];
this.$refs.classThree.loadend = false;
this.$refs.classThree.page = 1;
// this.$refs.classThree.productslist();
}
// this.$refs.classThree.getAllCategory()
}
這里 // this.$refs.classThree.getAllCategory() 是被注釋掉了,我取消注釋后目前是正常的,但是想請教一下,會有問題嗎?