This commit is contained in:
jeremygan2021
2026-02-11 00:26:27 +08:00
parent 5232ab9960
commit 61afc52ac2
6 changed files with 398 additions and 10 deletions

View File

@@ -2,7 +2,7 @@ import axios from 'axios';
const api = axios.create({
baseURL: import.meta.env.VITE_API_URL || 'http://localhost:8000/api',
timeout: 5000,
timeout: 8000, // 增加超时时间到 10秒
headers: {
'Content-Type': 'application/json',
}
@@ -21,4 +21,7 @@ export const getServiceDetail = (id) => api.get(`/services/${id}/`);
export const createServiceOrder = (data) => api.post('/service-orders/', data);
export const getARServices = () => api.get('/ar/');
export const sendSms = (data) => api.post('/auth/send-sms/', data);
export const queryMyOrders = (data) => api.post('/orders/my_orders/', data);
export default api;