From b14534a967d810327efc97d79bff2497f297a222 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 16 Dec 2022 14:18:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=BB=BA=E7=9A=84=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=89=88=E6=9C=AC=E6=97=B6=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=9C=89mock=E6=95=B0=E6=8D=AE=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1020899 --user=王孝刚 【接口测试】新建接口,选择其他版本的时候,会有复制备注等选项的弹框提示 https://www.tapd.cn/55049933/s/1316211 --- .../src/main/java/io/metersphere/service/MockConfigService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api-test/backend/src/main/java/io/metersphere/service/MockConfigService.java b/api-test/backend/src/main/java/io/metersphere/service/MockConfigService.java index bb78c0170d..da855718b9 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/MockConfigService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/MockConfigService.java @@ -137,6 +137,8 @@ public class MockConfigService { } if (request.getApiId() != null) { criteria.andApiIdEqualTo(request.getApiId()); + } else { + return new MockConfigResponse(null, new ArrayList<>()); } if (request.getProjectId() != null) { criteria.andProjectIdEqualTo(request.getProjectId());