11
This commit is contained in:
@@ -118,14 +118,12 @@ export function getTbProductTypeMap() {
|
||||
})
|
||||
}
|
||||
|
||||
// 获取评论(调用外部接口,按商品ID/SKU拉取评论)
|
||||
const FETCH_COMMENTS_BASE = 'http://192.168.8.60:5008'
|
||||
// 获取评论(由后端转发到外部服务,避免前端跨域)
|
||||
export function fetchComments(productId) {
|
||||
return request({
|
||||
url: FETCH_COMMENTS_BASE + '/fetch_comments',
|
||||
url: '/jarvis/comment/fetch-comments',
|
||||
method: 'get',
|
||||
params: { product_id: productId },
|
||||
headers: { isToken: false }
|
||||
params: { product_id: productId }
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user