文章详情页面:新增调用增加浏览量接口
parent
24c3709c95
commit
85af097207
|
@ -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 芋艿:后续要做调整
|
||||
});
|
||||
}
|
||||
|
|
|
@ -114,6 +114,8 @@
|
|||
}
|
||||
// #endif
|
||||
});
|
||||
// 增加文章浏览量
|
||||
ArticleApi.addArticleBrowseCount(this.id)
|
||||
},
|
||||
goodInfo(id) {
|
||||
ProductSpuApi.getSpuDetail(id).then(res=>{
|
||||
|
|
Loading…
Reference in New Issue