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']({