fix(接口测试): 无可用请求时可保存不可执行

This commit is contained in:
chenjianxing 2020-08-26 16:04:53 +08:00
parent 6550c47338
commit 5b017a42a5
1 changed files with 4 additions and 5 deletions

View File

@ -157,10 +157,6 @@ export default {
this.$warning(this.$t(validator.info));
return;
}
if (!this.validateEnableTest()) {
this.$warning(this.$t('api_test.enable_validate_tip'));
return;
}
this.change = false;
let bodyFiles = this.getBodyUploadFiles();
let url = this.create ? "/api/create" : "/api/update";
@ -195,7 +191,10 @@ export default {
},
saveRunTest() {
this.change = false;
if (!this.validateEnableTest()) {
this.$warning(this.$t('api_test.enable_validate_tip'));
return;
}
this.save(() => {
this.$success(this.$t('commons.save_success'));
this.runTest();