This commit is contained in:
Leo
2026-02-03 15:19:31 +08:00
parent 4c2803d911
commit df0bcf9d27

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) { export function fetchComments(productId) {
return request({ return request({
url: FETCH_COMMENTS_BASE + '/fetch_comments', url: '/jarvis/comment/fetch-comments',
method: 'get', method: 'get',
params: { product_id: productId }, params: { product_id: productId }
headers: { isToken: false }
}) })
} }