This commit is contained in:
王子琦
2026-01-16 13:56:39 +08:00
parent fecc30b7f0
commit 7675b4b8dc
8 changed files with 11128 additions and 4 deletions

11022
frontend/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,4 @@
import http from './http';
export const createReview = (data) => http.post('/reviews', data);
export const listReviewsByProduct = (productId) => http.get(`/reviews/product/${productId}`);

View File

@@ -2,11 +2,11 @@ module.exports = {
devServer: {
proxy: {
'/api': {
target: 'http://localhost:8080/',
target: 'http://localhost:8088/',
changeOrigin: true
},
'/uploads': {
target: 'http://localhost:8080',
target: 'http://localhost:8088',
changeOrigin: true
}
}