diff --git a/entry/src/main/ets/pages/Judge.ets b/entry/src/main/ets/pages/Judge.ets index 19cb4f76..a75cd40f 100644 --- a/entry/src/main/ets/pages/Judge.ets +++ b/entry/src/main/ets/pages/Judge.ets @@ -996,14 +996,21 @@ struct Index { AmplifyPopup({ amplifyImgIndex: this.amplifiedImgIndex, confirmAmplify: async (amplify) => { - clearTimeout(this.popTimer) - this.popTimer = null - this.popTimer = setTimeout(async () => { - const judge = this.judge - await judge.setJudgeItem(amplify.projectCode, 1); - this.isAmplifyPopShow = false - this.popTimer = null; - }, 500) + if(this.setManualProjectFn(this.amplifiedImgIndex)){ + clearTimeout(this.popTimer) + this.popTimer = null + this.popTimer = setTimeout(async () => { + const judge = this.judge + await judge.setJudgeItem(amplify.projectCode, 1); + this.isAmplifyPopShow = false + this.popTimer = null; + }, 500) + }else{ + Prompt.showToast({ + message: `有项目未结束,不允许人操作!`, + duration: 8000 + }); + } }, closeAmplifyPop: () => { this.isAmplifyPopShow = false