zhaoxingrui 5 лет назад
Родитель
Сommit
5c79c14b18
2 измененных файлов с 3 добавлено и 4 удалено
  1. 1 1
      src/components/APITestInfoForm.vue
  2. 2 3
      src/views/Project/APITest.vue

+ 1 - 1
src/components/APITestInfoForm.vue

@@ -101,7 +101,7 @@ export default {
         that.initChart1();
         that.initChart2();
       });
-    }, 2000);
+    }, 3000);
   },
   methods: {
     showForm() {

+ 2 - 3
src/views/Project/APITest.vue

@@ -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,