fix:全部评价删除多余代码

This commit is contained in:
kele
2023-02-07 14:16:11 +08:00
parent 582c995ff6
commit c18b95b42a
-6
View File
@@ -42,7 +42,6 @@
}, },
commentId: 0, commentId: 0,
code: 'all', code: 'all',
commentImages: [],
}); });
// 切换选项卡 // 切换选项卡
function onTabsChange(e) { function onTabsChange(e) {
@@ -79,11 +78,6 @@
} else { } else {
state.pagination = res.data; state.pagination = res.data;
} }
state.pagination.data.forEach((item) => {
item.images.forEach((image) => {
state.commentImages.push(sheep.$url.cdn(image));
});
});
if (state.pagination.current_page < state.pagination.last_page) { if (state.pagination.current_page < state.pagination.last_page) {
state.loadStatus = 'more'; state.loadStatus = 'more';
} else { } else {