文章详情页面:新增调用增加浏览量接口

pull/6/head
puhui999 2023-10-20 23:11:23 +08:00
parent 24c3709c95
commit 85af097207
2 changed files with 9 additions and 0 deletions

View File

@ -29,3 +29,10 @@ export function getArticle(id) {
noAuth: true // TODO 芋艿:后续要做调整
});
}
// 增加文章浏览量
export function addArticleBrowseCount(id) {
return request.put("app-api/promotion/article/add-browse-count?id=" + id, {}, {
noAuth: true // TODO 芋艿:后续要做调整
});
}

View File

@ -114,6 +114,8 @@
}
// #endif
});
//
ArticleApi.addArticleBrowseCount(this.id)
},
goodInfo(id) {
ProductSpuApi.getSpuDetail(id).then(res=>{