From 0c0988404ee3f0d2f3be3d52e85d5f8364bff4cb Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Fri, 4 Apr 2025 21:12:54 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20ContentTypeEnum=E4=BD=BF=E7=94=A8co?= =?UTF-8?q?nst=E6=9B=BF=E4=BB=A3enum?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/api/helper.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/web-antd/src/api/helper.ts b/apps/web-antd/src/api/helper.ts index 88360d9f..2e32ef8e 100644 --- a/apps/web-antd/src/api/helper.ts +++ b/apps/web-antd/src/api/helper.ts @@ -3,14 +3,14 @@ import { requestClient } from './request'; /** * @description: contentType */ -export enum ContentTypeEnum { +export const ContentTypeEnum = { // form-data upload - FORM_DATA = 'multipart/form-data;charset=UTF-8', + FORM_DATA: 'multipart/form-data;charset=UTF-8', // form-data qs - FORM_URLENCODED = 'application/x-www-form-urlencoded;charset=UTF-8', + FORM_URLENCODED: 'application/x-www-form-urlencoded;charset=UTF-8', // json - JSON = 'application/json;charset=UTF-8', -} + JSON: 'application/json;charset=UTF-8', +} as const; /** * 通用下载接口 封装一层