From 21611596278bd0b38ffaf4b3633a01eb2070a73b Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Fri, 21 Oct 2022 17:33:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=A9=BA=E9=97=B4=E9=BB=98=E8=AE=A4=E9=85=8D?= =?UTF-8?q?=E9=A2=9D=E7=9A=84=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E9=99=90=E5=88=B6=E6=9C=AA=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018615 --user=李玉号 【系统设置】系统配额管理-工作空间默认配额的性能测试数量限制未生效 https://www.tapd.cn/55049933/s/1271238 --- .../java/io/metersphere/service/PerformanceTestService.java | 3 ++- .../frontend/src/business/test/PerformanceTestList.vue | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/performance-test/backend/src/main/java/io/metersphere/service/PerformanceTestService.java b/performance-test/backend/src/main/java/io/metersphere/service/PerformanceTestService.java index d267d16a19..06c22e9466 100644 --- a/performance-test/backend/src/main/java/io/metersphere/service/PerformanceTestService.java +++ b/performance-test/backend/src/main/java/io/metersphere/service/PerformanceTestService.java @@ -590,9 +590,10 @@ public class PerformanceTestService { } public void copy(SaveTestPlanRequest request) { + LoadTestWithBLOBs copy = loadTestMapper.selectByPrimaryKey(request.getId()); + request.setProjectId(copy.getProjectId()); checkQuota(request, true); // copy test - LoadTestWithBLOBs copy = loadTestMapper.selectByPrimaryKey(request.getId()); String copyName = copy.getName() + " Copy"; if (StringUtils.length(copyName) > 30) { diff --git a/performance-test/frontend/src/business/test/PerformanceTestList.vue b/performance-test/frontend/src/business/test/PerformanceTestList.vue index d2f70deb1d..3b69ed2e54 100644 --- a/performance-test/frontend/src/business/test/PerformanceTestList.vue +++ b/performance-test/frontend/src/business/test/PerformanceTestList.vue @@ -291,6 +291,9 @@ export default { this.tableLoading = false; this.$success(this.$t('commons.copy_success')); this.search(); + }) + .catch(() => { + this.tableLoading = false; }); }, handleRun(test) {