fix(接口测试): 修复接口测试提取参数复制数据后修改会影响原数据的缺陷

--bug=1037352 --user=宋天阳 https://www.tapd.cn/55049933/s/1480094
This commit is contained in:
song-tianyang 2024-03-25 16:05:08 +08:00 committed by 刘瑞斌
parent 45da420360
commit 44ab9a2cd8
1 changed files with 3 additions and 1 deletions

View File

@ -46,6 +46,8 @@
</template>
<script setup lang="ts">
import { cloneDeep } from 'lodash-es';
import { LanguageEnum } from '@/components/pure/ms-code-editor/types';
import conditionContent from './content.vue';
import conditionList from './list.vue';
@ -93,7 +95,7 @@
*/
function copyListItem() {
const copyItem = {
...activeItem.value,
...cloneDeep(activeItem.value),
id: new Date().getTime(),
};
data.value.push(copyItem as ExecuteConditionProcessor);