diff --git a/public/react/src/redux/actions/ojForm.js b/public/react/src/redux/actions/ojForm.js index 07ddbb48b..62de0fed8 100644 --- a/public/react/src/redux/actions/ojForm.js +++ b/public/react/src/redux/actions/ojForm.js @@ -142,17 +142,24 @@ export const validateOjForm = (props, type, cb) => { // 非空校验 let validateResult = emptyValidate(key, value); const errMsg = validateResult[key].errMsg; - if (errMsg) { - hasSuccess = false; - - if(tcbool===false){ - tcbool=true - notification['error']({ - message: '提示', - description: '测试用例必须填写输出!' - }); + // console.log("-------"); + // console.log(errMsg); + // console.log(key); + // console.log(value); + + if (errMsg) { + if(key==="output"){ + hasSuccess = false; + if(tcbool===false){ + tcbool=true + notification['error']({ + message: '提示', + description: '测试用例必须填写输出!' + }); + + } + } - } } else { // 唯一性校验