From 63dc1ec5022d909cf294a2396d45746f50daea8d Mon Sep 17 00:00:00 2001 From: MeterSphere Bot <78466014+metersphere-bot@users.noreply.github.com> Date: Tue, 26 Apr 2022 10:44:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=9D=E5=AD=98=E5=85=AC=E5=85=B1=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E5=BA=93=E6=95=B0=E6=8D=AE=E6=97=B6=EF=BC=8C=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=BB=8E=E5=85=AC=E5=85=B1=E7=94=A8=E4=BE=8B=E5=BA=93?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E7=9A=84=E7=BC=BA=E9=99=B7=20(#13041)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1012717 --user=王孝刚 [测试跟踪] github#13004将用例树中的用例添加至公共用例库后,对用例库中该用例进行编辑并保存时,公共用例库中添加的用例被自动移除,功能实现有误,请修改 https://www.tapd.cn/55049933/s/1147448 Co-authored-by: wxg0103 <727495428@qq.com> --- .../business/components/track/case/components/TestCaseEdit.vue | 1 + .../components/track/case/components/TestCaseEditShow.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/src/business/components/track/case/components/TestCaseEdit.vue b/frontend/src/business/components/track/case/components/TestCaseEdit.vue index 0d1ced5b81..c30e13b254 100644 --- a/frontend/src/business/components/track/case/components/TestCaseEdit.vue +++ b/frontend/src/business/components/track/case/components/TestCaseEdit.vue @@ -660,6 +660,7 @@ export default { if (!this.form.stepModel) { this.form.stepModel = "STEP"; } + this.casePublic = tmp.casePublic; this.form.module = testCase.nodeId; //设置自定义熟悉默认值 this.customFieldForm = parseCustomField(this.form, this.testCaseTemplate, this.customFieldRules, testCase ? buildTestCaseOldFields(this.form) : null); diff --git a/frontend/src/business/components/track/case/components/TestCaseEditShow.vue b/frontend/src/business/components/track/case/components/TestCaseEditShow.vue index 2cd0cdd8c9..b0eff71f8e 100644 --- a/frontend/src/business/components/track/case/components/TestCaseEditShow.vue +++ b/frontend/src/business/components/track/case/components/TestCaseEditShow.vue @@ -625,6 +625,7 @@ export default { if (!this.form.stepModel) { this.form.stepModel = "STEP"; } + this.casePublic = tmp.casePublic; this.form.module = testCase.nodeId; //设置自定义熟悉默认值 this.customFieldForm = parseCustomField(this.form, this.testCaseTemplate, this.customFieldRules, testCase ? buildTestCaseOldFields(this.form) : null);