fix (接口定义): 修复复制接口问题

--bug=1007334 --user=赵勇 【github#6815 】 复制的接口在未保存的情况下编辑原接口,跳转的是另一个复制接口 https://www.tapd.cn/55049933/s/1057611
This commit is contained in:
fit2-zhao 2021-10-22 11:35:57 +08:00 committed by fit2-zhao
parent 8778ea9b67
commit 8bc051a3ba
1 changed files with 3 additions and 3 deletions

View File

@ -503,7 +503,7 @@ export default {
}); });
}, },
generateGraph() { generateGraph() {
getGraphByCondition('API', buildBatchParam(this, this.$refs.table.selectIds),(data) => { getGraphByCondition('API', buildBatchParam(this, this.$refs.table.selectIds), (data) => {
this.graphData = data; this.graphData = data;
this.$refs.relationshipGraph.open(); this.$refs.relationshipGraph.open();
}); });
@ -602,7 +602,7 @@ export default {
}, },
handleCopy(row) { handleCopy(row) {
row.isCopy = true; row.isCopy = true;
this.$emit('editApi', row); this.$emit('editApi', JSON.parse(JSON.stringify(row)));
}, },
runApi(row) { runApi(row) {
@ -723,7 +723,7 @@ export default {
}); });
}, },
handleTestCase(api) { handleTestCase(api) {
this.$emit("handleTestCase",api) this.$emit("handleTestCase", api)
// this.$refs.caseList.open(this.selectApi); // this.$refs.caseList.open(this.selectApi);
}, },
handleDelete(api) { handleDelete(api) {