From aa26eed52f05e5033eda56fb7d0111907de8eeff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Sun, 8 Mar 2020 00:33:34 +0800 Subject: [PATCH] =?UTF-8?q?oj=20=E6=97=B6=E9=97=B4=E6=B2=A1=E8=BE=93?= =?UTF-8?q?=E5=85=A5=20=E7=A6=81=E6=AD=A2=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/redux/actions/ojForm.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public/react/src/redux/actions/ojForm.js b/public/react/src/redux/actions/ojForm.js index 25e5bb43d..61472e002 100644 --- a/public/react/src/redux/actions/ojForm.js +++ b/public/react/src/redux/actions/ojForm.js @@ -168,6 +168,13 @@ export const validateOjForm = (props, type, cb) => { tcValidResult.push(tempObj); }); + if(ojForm.timeLimit===null){ + hasSuccess = false; + notification['error']({ + message: '提示', + description: '时间限制必须输入!' + }); + } // if (testCases.length === 0) { // hasSuccess = false; // notification['error']({