fix: issues

This commit is contained in:
2025-12-20 14:11:44 +08:00
parent 88d42470c4
commit 8e95dada82
17 changed files with 95 additions and 87 deletions

View File

@@ -2,7 +2,7 @@ import httpClient from './httpClient';
export const orderService = {
get({ page = 1, limit = 10, keyword = '' } = {}) {
return httpClient.get('/admin/orders', {
return httpClient.get('/orders', {
params: {
page,
limit,
@@ -11,6 +11,6 @@ export const orderService = {
});
},
refund(id) {
return httpClient.post(`/admin/orders/${id}/refund`);
return httpClient.post(`/orders/${id}/refund`);
}
}