This commit is contained in:
Leo
2026-02-03 15:19:31 +08:00
parent 4c2803d911
commit df0bcf9d27
+3 -5
View File
@@ -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 }
})
}