From 78c6f2be2e472929110eb7ceba4b9e1c24bae0b0 Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Mon, 22 Nov 2021 20:14:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/serve/projectAdd.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/serve/projectAdd.vue b/src/views/serve/projectAdd.vue index 12c6035..83c96a2 100644 --- a/src/views/serve/projectAdd.vue +++ b/src/views/serve/projectAdd.vue @@ -397,11 +397,14 @@ export default { this.$message.warning("该项目名称已存在"); return false; } - if (!experimentTarget) { + let reg = /<\/?.+?\/?>/g + let experimentTargets = experimentTarget.replace(reg, '') + if (!experimentTargets) { this.$message.warning("请输入实验目标"); return false; } - if (!experimentDescription) { + let experimentDescriptions = experimentDescription.replace(reg, '') + if (!experimentDescriptions) { this.$message.warning("请输入案例描述"); return false; } @@ -417,7 +420,8 @@ export default { this.$message.warning("判分点分数已超过100"); return false; } - if (!experimentHint && hintOpen) { + let experimentHints = experimentHint.replace(reg, '') + if (!experimentHints && hintOpen == 0) { this.$message.warning("请输入实验提示"); return false; }