fix(接口自动化): 修复重构缺陷
This commit is contained in:
parent
3a174fcef0
commit
096ee6bd5b
|
@ -268,7 +268,7 @@
|
|||
},
|
||||
saveApi(data) {
|
||||
this.setTabTitle(data);
|
||||
this.$refs.apiList[0].initApiTable(data);
|
||||
this.$refs.apiList[0].initTable(data);
|
||||
},
|
||||
|
||||
showExecResult(row){
|
||||
|
|
|
@ -104,6 +104,7 @@
|
|||
if (!this.httpForm.path.startsWith("/") || this.httpForm.path.match(/\s/) != null) {
|
||||
callback(this.$t('api_test.definition.request.path_valid_info'));
|
||||
}
|
||||
callback();
|
||||
};
|
||||
return {
|
||||
rule: {
|
||||
|
|
|
@ -206,6 +206,8 @@
|
|||
data.request = JSON.stringify(this.api.request);
|
||||
data.method = this.api.method;
|
||||
data.url = this.api.url;
|
||||
let id = getUUID();
|
||||
data.id = id;
|
||||
data.status = this.api.status;
|
||||
data.userId = this.api.userId;
|
||||
data.description = this.api.description;
|
||||
|
|
Loading…
Reference in New Issue