商品详情.评价页面.购物车页面.首页轮播图.搜索功能.分类接口
This commit is contained in:
@@ -46,10 +46,10 @@
|
||||
async function getComment(id) {
|
||||
const { data } = await sheep.$api.goods.comment(id, {
|
||||
list_rows: 3,
|
||||
});
|
||||
console.log(data)
|
||||
});
|
||||
const {data:datas} = await sheep.$api.goods.comment2(id);
|
||||
state.commentList = data;
|
||||
state.total = data.total;
|
||||
state.total = datas.total;
|
||||
}
|
||||
onBeforeMount(() => {
|
||||
getComment(props.goodsId);
|
||||
|
||||
Reference in New Issue
Block a user