fix(系统设置): 工作空间默认配额的性能测试数量限制未生效

--bug=1018615 --user=李玉号 【系统设置】系统配额管理-工作空间默认配额的性能测试数量限制未生效
https://www.tapd.cn/55049933/s/1271238
This commit is contained in:
shiziyuan9527 2022-10-21 17:33:50 +08:00 committed by lyh
parent 1ec1579f9e
commit 2161159627
2 changed files with 5 additions and 1 deletions

View File

@ -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) {

View File

@ -291,6 +291,9 @@ export default {
this.tableLoading = false;
this.$success(this.$t('commons.copy_success'));
this.search();
})
.catch(() => {
this.tableLoading = false;
});
},
handleRun(test) {