feat(销售时间线): 重构销售时间线组件并优化API调用
重构销售时间线组件,增加对客户阶段数据的动态计算和展示 优化API端点配置,新增课1-4后阶段和成交客户的数据接口 调整样式和布局,增加客户类型标签显示 延长HTTP请求超时时间至100秒
This commit is contained in:
@@ -6,7 +6,7 @@ import { useUserStore } from '@/stores/user'
|
||||
// 创建axios实例
|
||||
const service = axios.create({
|
||||
baseURL: 'http://192.168.15.51:8890' || '', // API基础路径,支持完整URL
|
||||
timeout: 30000, // 请求超时时间
|
||||
timeout: 100000, // 请求超时时间
|
||||
headers: {
|
||||
'Content-Type': 'application/json;charset=UTF-8'
|
||||
}
|
||||
@@ -157,7 +157,7 @@ const http = {
|
||||
},
|
||||
|
||||
// POST请求
|
||||
post(url, data = {}, config = {}) {
|
||||
post(url, data, config) {
|
||||
return service({
|
||||
method: 'post',
|
||||
url,
|
||||
|
||||
Reference in New Issue
Block a user