Skip to content

Commit

Permalink
fix: 比赛作品提交判定条件
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxtuneLee committed Mar 28, 2024
1 parent 342df54 commit 0d0c19f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "approval-system",
"version": "0.1.0",
"private": true,
"proxy": "https://approve.sast.fun",
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@craco/craco": "^6.4.3",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/registerDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function RegisterDetail() {
getWorkInfo(Number(id)).then((res) => {
// console.log(res)
setWorkData(res.data.data)
if (res.data.errMsg === '您还未上传项目') {
if (res.data.errMsg === '您还未上传作品' && !beforeSubmitTime && !afterSubmitTime) {
notification.warning({
message: '您还未上传项目',
description: '请记得提交您的项目哦,否则无法正常参赛',
Expand Down
3 changes: 1 addition & 2 deletions src/pages/workDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,9 @@ function WorkDetail() {
})
}, 20000)
getWorkInfo(Number(id)).then((res) => {
console.log(res)
setWorkData(res.data.data)
if (res.data.data === null) {
if (res.data.errMsg === '您还未上传项目' && JSON.stringify(remoteSchema) !== '{}') {
if (res.data.errMsg === '您还未上传作品' && JSON.stringify(remoteSchema) !== '{}') {
setLoading(false)
clearTimeout(stillLoading)
clearTimeout(loadingError)
Expand Down

0 comments on commit 0d0c19f

Please sign in to comment.