diff --git a/public/react/src/modules/tpm/challengesnew/TPMevaluation.js b/public/react/src/modules/tpm/challengesnew/TPMevaluation.js index 60161d829..491751b6a 100644 --- a/public/react/src/modules/tpm/challengesnew/TPMevaluation.js +++ b/public/react/src/modules/tpm/challengesnew/TPMevaluation.js @@ -561,7 +561,8 @@ export default class TPMevaluation extends Component { if(type==="sr"){ newevaluationlist[key].input=e.target.value }else if(type==="yq"){ - newevaluationlist[key].output=e.target.value + // 统一转成\r\n + newevaluationlist[key].output= e.target.value ? e.target.value.replace(/\r?\n/g, "\r\n") : e.target.value } this.setevaluationlist(newevaluationlist); }