瀏覽代碼

注释request.ts中的
headers: { 'Content-Type': 'application/json' },
这个会导致生成代码的上传文件 file为空

Signed-off-by: DDTT <15195097+DDTT321@user.noreply.gitee.com>

DDTT 1 年之前
父節點
當前提交
74872ed555
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 键定义