From e4971fc98cdb71b0568e5f83dedc9f99c2218931 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Sat, 18 Feb 2023 20:13:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E7=BC=96=E8=BE=91=E6=97=B6?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/business/case/components/TestCaseEdit.vue | 6 ++++++ .../src/business/case/components/case/CaseBaseInfo.vue | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/test-track/frontend/src/business/case/components/TestCaseEdit.vue b/test-track/frontend/src/business/case/components/TestCaseEdit.vue index 9f618fa864..a163b597bc 100644 --- a/test-track/frontend/src/business/case/components/TestCaseEdit.vue +++ b/test-track/frontend/src/business/case/components/TestCaseEdit.vue @@ -464,6 +464,7 @@ export default { stepModel: "STEP", customNum: "", followPeople: "", + versionId: "" }, maintainerOptions: [], workspaceId: "", @@ -1000,6 +1001,10 @@ export default { this.$nextTick(() => { this.showInputTag = true; }); + + if (this.isCopy) { + this.form.id = null; + } this.loading = false; }); }, @@ -1282,6 +1287,7 @@ export default { }, ]; this.form.customNum = ""; + this.form.versionId = ""; this.form.tags = []; }, addListener() { diff --git a/test-track/frontend/src/business/case/components/case/CaseBaseInfo.vue b/test-track/frontend/src/business/case/components/case/CaseBaseInfo.vue index 5151c35bc5..05a3062603 100644 --- a/test-track/frontend/src/business/case/components/case/CaseBaseInfo.vue +++ b/test-track/frontend/src/business/case/components/case/CaseBaseInfo.vue @@ -112,7 +112,7 @@ /> -
+
{{ $t("commons.version") }}
@@ -379,7 +379,7 @@ export default { { required: true, message: this.$t("case.version_id_cannot_be_empty"), - trigger: "change", + trigger: "blur", }, ], customNum: [