fix(接口定义): 修复场景复制的接口另存为新用例提示错误的缺陷
--bug=1019918 --user=王孝刚 【接口测试】复制的api另存为新用例,用例名称不输入,提示信息错误 https://www.tapd.cn/55049933/s/1299120
This commit is contained in:
parent
ebb4af9987
commit
7bff77f801
|
@ -45,7 +45,11 @@ export default {
|
|||
,
|
||||
methods: {
|
||||
saveApi() {
|
||||
this.saveCase(this.httpForm);
|
||||
this.$refs.httpForm.validate(async (valid) => {
|
||||
if (valid) {
|
||||
this.saveCase(this.httpForm);
|
||||
}
|
||||
});
|
||||
},
|
||||
saveCase(api) {
|
||||
let obj = {
|
||||
|
@ -111,7 +115,7 @@ export default {
|
|||
},
|
||||
open(api) {
|
||||
if (api) {
|
||||
this.httpForm = api;
|
||||
this.httpForm = JSON.parse(JSON.stringify(api));
|
||||
this.httpVisible = true;
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue