fix(接口定义): 修复场景复制的接口另存为新用例提示错误的缺陷

--bug=1019918 --user=王孝刚 【接口测试】复制的api另存为新用例,用例名称不输入,提示信息错误
https://www.tapd.cn/55049933/s/1299120
This commit is contained in:
wxg0103 2022-11-21 10:36:29 +08:00 committed by wxg0103
parent 0b768fa446
commit c1705b48c9
2 changed files with 6 additions and 5 deletions

View File

@ -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;
}
},

View File

@ -104,9 +104,6 @@ export default {
mounted() {
this.allSamplers = this.filter.get('DEFINITION');
},
created() {
console.log(this.data)
},
methods: {
handleCommand(cmd) {
switch (cmd) {