From 1a2461eacdf91b65914397d4dd77e748e14f974f 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 16:51:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/redux/actions/ojForm.js | 27 +++++++++++++++--------- 1 file changed, 17 insertions(+), 10 deletions(-) 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 { // 唯一性校验