style(接口自动化): 控制台参数设置

This commit is contained in:
fit2-zhao 2021-01-27 13:39:46 +08:00
parent d6b2336d35
commit 42273bebf0
2 changed files with 6 additions and 3 deletions

View File

@ -271,12 +271,13 @@
let bodyFiles = this.getBodyUploadFiles(tmp);
tmp.projectId = getCurrentProjectID();
tmp.active = true;
tmp.request.path = this.api.path;
tmp.request.method = this.api.method;
tmp.apiDefinitionId = tmp.apiDefinitionId || this.api.id;
let url = "/api/testcase/create";
if (tmp.id) {
url = "/api/testcase/update";
} else {
tmp.request.path = this.api.path;
tmp.request.method = this.api.method;
}
if (tmp.tags instanceof Array) {
tmp.tags = JSON.stringify(tmp.tags);

View File

@ -15,7 +15,9 @@
<!--</el-tab-pane>-->
<el-tab-pane :label="$t('api_test.definition.request.console')" name="console" class="pane">
<pre>{{response.responseResult.console}}</pre>
<div style="width: 400px">
<pre>{{response.responseResult.console}}</pre>
</div>
</el-tab-pane>
<el-tab-pane :label="$t('api_report.assertions')" name="assertions" class="pane assertions">