fix(我的关注): 显示登录按钮

This commit is contained in:
2026-01-07 10:52:20 +08:00
parent ae5577c0ee
commit 40c1d27f02
3 changed files with 39 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ export default {
},
async: false,
}).then((res) => {
let newArr = res.data.list;
let newArr = res.data?.list || [];
for (var i = 0; i < newArr.length; i++) {
newArr[i].composite_score = Math.floor((parseFloat(newArr[i].shop_desccredit) + parseFloat(newArr[i].shop_servicecredit) + parseFloat(newArr[i].shop_deliverycredit)) / 3).toFixed(1);
}
@@ -75,6 +75,9 @@ export default {
goodsImageError(index) {
this.collectionList[index].sku_image = this.$util.getDefaultImage().goods;
this.$forceUpdate();
}
},
toLogin() {
this.$refs.login.open();
},
}
};