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', }