|
@@ -15,7 +15,10 @@ axios.interceptors.request.use((config) => {
|
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (config.data && config.data[0].post == '1' && config.method === 'post') {
|
|
|
|
|
|
+
|
|
|
|
+ if(config.url === 'https://gpt.cocorobo.cn/chat') {
|
|
|
|
+ config.data = config.data//序列化post 参数
|
|
|
|
+ } if (config.data && config.data[0].post == '1' && config.method === 'post') {
|
|
config.data = 'mode=' + (Object.values(config.data[0]).join(','))//序列化post 参数
|
|
config.data = 'mode=' + (Object.values(config.data[0]).join(','))//序列化post 参数
|
|
} else if(config.method === 'post') {
|
|
} else if(config.method === 'post') {
|
|
config.data = qs.stringify(config.data)//序列化post 参数
|
|
config.data = qs.stringify(config.data)//序列化post 参数
|