From f44595652ca6cc9a44254f8648cf249ee5bad5ee Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Tue, 14 Jul 2026 17:46:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E4=BD=9C=E5=93=81=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Competitions/Detail/components/WorkSubmit/index.tsx | 3 ++- src/utils/fetch.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/Competitions/Detail/components/WorkSubmit/index.tsx b/src/pages/Competitions/Detail/components/WorkSubmit/index.tsx index b5998007f..d4c5b04a9 100644 --- a/src/pages/Competitions/Detail/components/WorkSubmit/index.tsx +++ b/src/pages/Competitions/Detail/components/WorkSubmit/index.tsx @@ -307,7 +307,8 @@ const WorkSubmit: FC = ({ Data["name"] = values.name; Data["url"] = values.url; } - if (modelType == 1 && fileList.length == 0) { + const hasNewFile = fileList[0] instanceof File; + if ((modelType == 1 && (fileList.length == 0 || !hasNewFile)) || (modelType == 2 && !hasNewFile)) { res = await dispatch({ type: 'competitions/getWorkSubmitUpdateRes', payload: { diff --git a/src/utils/fetch.ts b/src/utils/fetch.ts index 8988c535c..07fb0b625 100755 --- a/src/utils/fetch.ts +++ b/src/utils/fetch.ts @@ -126,8 +126,8 @@ export default function request(url: string, option: any, flag?: boolean) { let newOptions = { ...defaultOptions, ...options } let eduHeader = { - 'X-Edu-Signature':'d8f677f925d3ce1427e7d917660661ce', - 'X-Edu-Timestamp':'1783058819780', + 'X-Edu-Signature':'543a093f1c514959673a0cc5af80bde5', + 'X-Edu-Timestamp':'1784017604961', 'X-Edu-Type':'pc', }