fix(接口自动化): 修复重构缺陷

This commit is contained in:
fit2-zhao 2020-12-18 11:35:17 +08:00
parent 3a174fcef0
commit 096ee6bd5b
3 changed files with 4 additions and 1 deletions

View File

@ -268,7 +268,7 @@
},
saveApi(data) {
this.setTabTitle(data);
this.$refs.apiList[0].initApiTable(data);
this.$refs.apiList[0].initTable(data);
},
showExecResult(row){

View File

@ -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: {

View File

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