From 385d1b0d2ea0c2e263ab2579811b74a667ffbf92 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Wed, 22 Mar 2023 10:25:36 +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=9D=E5=AD=98=E6=97=B6=E7=94=A8=E4=BE=8BID=E6=9C=AA?= =?UTF-8?q?=E4=BC=A0=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1024402 --user=宋昌昌 【测试跟踪】功能用例-详情页点击编辑用例步骤-文本描述-保存报错 https://www.tapd.cn/55049933/s/1354191 --- .../src/main/java/io/metersphere/service/TestCaseService.java | 2 +- .../frontend/src/business/case/components/TestCaseEdit.vue | 1 + .../business/case/components/import/TestCaseCommonImportNew.vue | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java index 580db9be99..f6c4da4058 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java @@ -2273,10 +2273,10 @@ public class TestCaseService { public TestCase edit(EditTestCaseRequest request) { TestCaseWithBLOBs testCaseWithBLOBs = testCaseMapper.selectByPrimaryKey(request.getId()); - request.setNum(testCaseWithBLOBs.getNum()); if (testCaseWithBLOBs == null) { MSException.throwException(Translator.get("edit_load_test_not_found") + request.getId()); } + request.setNum(testCaseWithBLOBs.getNum()); this.setNode(request); return editTestCase(request); } diff --git a/test-track/frontend/src/business/case/components/TestCaseEdit.vue b/test-track/frontend/src/business/case/components/TestCaseEdit.vue index 2cdf8d475d..3452b4326b 100644 --- a/test-track/frontend/src/business/case/components/TestCaseEdit.vue +++ b/test-track/frontend/src/business/case/components/TestCaseEdit.vue @@ -1249,6 +1249,7 @@ export default { this.routerToEdit(response.data.id); this.form.num = response.data.num; this.form.customNum = response.data.customNum; + setTimeout(() => this.initEdit(), 500); } } this.createVersionId = null; diff --git a/test-track/frontend/src/business/case/components/import/TestCaseCommonImportNew.vue b/test-track/frontend/src/business/case/components/import/TestCaseCommonImportNew.vue index 7090edebe9..de238abaff 100644 --- a/test-track/frontend/src/business/case/components/import/TestCaseCommonImportNew.vue +++ b/test-track/frontend/src/business/case/components/import/TestCaseCommonImportNew.vue @@ -304,6 +304,7 @@ export default { flex: none; order: 0; flex-grow: 0; + border-radius: 4px; } .download-tips-content {