Explorar el Código

feat: 流水线和构建产物默认按id降序排列。

Jinyao hace 5 años
padre
commit
82957f59d1
Se han modificado 1 ficheros con 3 adiciones y 5 borrados
  1. 3 5
      src/views/Project/Pipeline.vue

+ 3 - 5
src/views/Project/Pipeline.vue

@@ -1,7 +1,7 @@
 <template>
   <ElTabs class="tabs" v-model="activeTab">
     <ElTabPane label="流水线" name="pipeline">
-      <ElTable :data="pipelines" width="100%">
+      <ElTable :data="pipelines" width="100%" :default-sort="{prop: 'id', order: 'descending'}">
         <ElTableColumn
           prop="id"
           label="ID"
@@ -87,9 +87,7 @@
         <template #title>流水线构建历史</template>
         <ElTable
           :data="pipelineHistory"
-          :default-sort="{
-            props: 'id',
-          }"
+          :default-sort="{prop: 'id', order: 'descending'}"
           height="400"
         >
           <ElTableColumn type="expand">
@@ -192,7 +190,7 @@
       </ElDialog>
     </ElTabPane>
     <ElTabPane label="部署产物" name="production">
-      <ElTable :data="productions" width="100%">
+      <ElTable :data="productions" width="100%" :default-sort="{prop: 'id', order: 'descending'}">
         <ElTableColumn
           prop="id"
           label="ID"