mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-30 02:58:31 +08:00
fix(接口定义): 修复场景复制的接口另存为新用例提示错误的缺陷
--bug=1019918 --user=王孝刚 【接口测试】复制的api另存为新用例,用例名称不输入,提示信息错误 https://www.tapd.cn/55049933/s/1299120
This commit is contained in:
parent
0b768fa446
commit
c1705b48c9
@ -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;
|
||||
}
|
||||
},
|
||||
|
@ -104,9 +104,6 @@ export default {
|
||||
mounted() {
|
||||
this.allSamplers = this.filter.get('DEFINITION');
|
||||
},
|
||||
created() {
|
||||
console.log(this.data)
|
||||
},
|
||||
methods: {
|
||||
handleCommand(cmd) {
|
||||
switch (cmd) {
|
||||
|
Loading…
Reference in New Issue
Block a user