From 19981c25182e4279bef8efe55ca89c66aeabc1b1 Mon Sep 17 00:00:00 2001 From: MeterSphere Bot <78466014+metersphere-bot@users.noreply.github.com> Date: Thu, 18 Aug 2022 11:18:33 +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=E5=A4=8D=E5=88=B6=E5=9C=BA=E6=99=AF=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E4=BA=BA=E4=B8=BA=E7=A9=BA=E7=9A=84=E7=BC=BA=E9=99=B7?= =?UTF-8?q?=20(#17042)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1015905 --user=王孝刚 【接口测试】其他用户复制接口场景,复制后没有创建人 https://www.tapd.cn/55049933/s/1226169 Co-authored-by: wxg0103 <727495428@qq.com> --- .../components/api/automation/scenario/ApiScenarioList.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue index b0b758cad0..53c3441190 100644 --- a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue +++ b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue @@ -321,7 +321,8 @@ import { hasLicense, hasPermission, objToStrMap, - strMapToObj + strMapToObj, + getCurrentUserId } from "@/common/js/utils"; import { API_SCENARIO_CONFIGS, @@ -1178,11 +1179,15 @@ export default { } }); }, + copy(row) { let rowParam = JSON.parse(JSON.stringify(row)); rowParam.copy = true; rowParam.name = 'copy_' + rowParam.name; rowParam.customNum = ''; + rowParam.principal = getCurrentUserId(); + rowParam.createUser = getCurrentUserId(); + rowParam.userId = getCurrentUserId(); this.$emit('edit', rowParam); }, showReport(row) {