refactor(接口测试): 快捷调试另存为新用例后,请求地址不被清空

--bug=1028275 --user=王孝刚 【接口测试】快捷调试-另存为新用例后url被清空了
https://www.tapd.cn/55049933/s/1400866
This commit is contained in:
wxg0103 2023-08-04 10:26:39 +08:00 committed by fit2-zhao
parent 2b78242e42
commit 9dc8c196f4
1 changed files with 2 additions and 0 deletions

View File

@ -245,6 +245,7 @@ export default {
saveAs() {
this.$refs['debugForm'].validate((valid) => {
if (valid) {
let url = this.debugForm.url;
this.request.id = getUUID();
this.request.method = this.debugForm.method;
this.request.path = this.debugForm.path;
@ -261,6 +262,7 @@ export default {
this.compatibleHistory(this.debugForm.request.hashTree);
}
this.$refs.caseList.saveApiAndCase(this.debugForm);
this.debugForm.url = url;
} else {
return false;
}