|
|
@@ -6,8 +6,7 @@
|
|
|
</div>
|
|
|
<div class="apiTestTableContainer">
|
|
|
<el-table
|
|
|
- :data="APITests"
|
|
|
- style="width: 100%">
|
|
|
+ :data="APITests">
|
|
|
<el-table-column
|
|
|
prop="testId"
|
|
|
label="ID"
|
|
|
@@ -223,7 +222,7 @@ export default {
|
|
|
if (valid) {
|
|
|
this.createAPITestForm.createTime = this.getCurrentTime();
|
|
|
await APITestAPI.createAPITest({
|
|
|
- projectId: 1,
|
|
|
+ projectId: this.$store.state.workspace.currentProjectId,
|
|
|
createTime: this.createAPITestForm.createTime,
|
|
|
username: '',
|
|
|
testName: this.createAPITestForm.testName,
|