dev
e 3 years ago
parent 72cb889243
commit 78c6f2be2e
  1. 10
      src/views/serve/projectAdd.vue

@ -397,11 +397,14 @@ export default {
this.$message.warning("该项目名称已存在"); this.$message.warning("该项目名称已存在");
return false; return false;
} }
if (!experimentTarget) { let reg = /<\/?.+?\/?>/g
let experimentTargets = experimentTarget.replace(reg, '')
if (!experimentTargets) {
this.$message.warning("请输入实验目标"); this.$message.warning("请输入实验目标");
return false; return false;
} }
if (!experimentDescription) { let experimentDescriptions = experimentDescription.replace(reg, '')
if (!experimentDescriptions) {
this.$message.warning("请输入案例描述"); this.$message.warning("请输入案例描述");
return false; return false;
} }
@ -417,7 +420,8 @@ export default {
this.$message.warning("判分点分数已超过100"); this.$message.warning("判分点分数已超过100");
return false; return false;
} }
if (!experimentHint && hintOpen) { let experimentHints = experimentHint.replace(reg, '')
if (!experimentHints && hintOpen == 0) {
this.$message.warning("请输入实验提示"); this.$message.warning("请输入实验提示");
return false; return false;
} }

Loading…
Cancel
Save