lsc hai 3 meses
pai
achega
0f5fc49a42
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/common/axios.config.js

+ 1 - 1
src/common/axios.config.js

@@ -28,7 +28,7 @@ axios.interceptors.request.use((config) => {
     // }
     if (config.url === 'https://gpt.cocorobo.cn/search_image' || config.url === 'https://gpt.cocorobo.cn/chat' || config.url === 'https://gpt4.cocorobo.cn/create_free_assistants' || config.url === 'https://gpt4.cocorobo.cn/assistants_completion_response') {
         config.data = config.data//序列化post 参数
-    } else if (config.url.indexOf('https://r2rserver.cocorobo.cn') != -1) {
+    } else if (config.url.indexOf('http://localhost:7004') != -1 || config.url.indexOf('https://r2rserver.cocorobo.cn') != -1) {
         config.headers = {
             'Content-Type': 'application/json',
         }