style(接口自动化): 控制台参数设置
This commit is contained in:
parent
d6b2336d35
commit
42273bebf0
|
@ -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);
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue