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) { saveApi(data) {
this.setTabTitle(data); this.setTabTitle(data);
this.$refs.apiList[0].initApiTable(data); this.$refs.apiList[0].initTable(data);
}, },
showExecResult(row){ showExecResult(row){

View File

@ -104,6 +104,7 @@
if (!this.httpForm.path.startsWith("/") || this.httpForm.path.match(/\s/) != null) { if (!this.httpForm.path.startsWith("/") || this.httpForm.path.match(/\s/) != null) {
callback(this.$t('api_test.definition.request.path_valid_info')); callback(this.$t('api_test.definition.request.path_valid_info'));
} }
callback();
}; };
return { return {
rule: { rule: {

View File

@ -206,6 +206,8 @@
data.request = JSON.stringify(this.api.request); data.request = JSON.stringify(this.api.request);
data.method = this.api.method; data.method = this.api.method;
data.url = this.api.url; data.url = this.api.url;
let id = getUUID();
data.id = id;
data.status = this.api.status; data.status = this.api.status;
data.userId = this.api.userId; data.userId = this.api.userId;
data.description = this.api.description; data.description = this.api.description;