Sfoglia il codice sorgente

!1554 解决生产代码上传功能 file为空问题
Merge pull request !1554 from DDTT/next

zuohuaijun 1 anno fa
parent
commit
298b4adc91
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Web/src/utils/request.ts

+ 1 - 1
Web/src/utils/request.ts

@@ -9,7 +9,7 @@ const abortControllerMap: Map<string, AbortController> = new Map();
 export const service = axios.create({
 	baseURL: window.__env__.VITE_API_URL as any,
 	timeout: 50000,
-	headers: { 'Content-Type': 'application/json' },
+	//headers: { 'Content-Type': 'application/json' }, 这个会导致生成代码的上传文件 file为空
 });
 
 // token 键定义