fix(接口测试): 修复复制场景创建人为空的缺陷 (#17042)
--bug=1015905 --user=王孝刚 【接口测试】其他用户复制接口场景,复制后没有创建人 https://www.tapd.cn/55049933/s/1226169 Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
parent
3ffb2e6b16
commit
19981c2518
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue