fix(接口用例): 复制插件用例时插件数据丢失修复

This commit is contained in:
baiqi 2024-07-18 16:20:20 +08:00 committed by 刘瑞斌
parent 71c7493e88
commit 6567dcf280
1 changed files with 1 additions and 0 deletions

View File

@ -225,6 +225,7 @@
if (isCopy) {
detailForm.value = cloneDeep(record as RequestParam);
detailForm.value.name = `copy_${record?.name}`;
detailForm.value.isCopy = true;
environmentId.value = record?.environmentId;
if (detailForm.value.name.length > 255) {
detailForm.value.name = detailForm.value.name.slice(0, 255);