Browse Source

任务节点不显示commit msg tab

Cyt928 5 years ago
parent
commit
24bf6212b9
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/components/RequirementDrawer.vue

+ 3 - 1
src/components/RequirementDrawer.vue

@@ -145,7 +145,8 @@
                 <el-button @click="cancelEdit" size="mini">取消</el-button>
               </el-row>
             </el-tab-pane>
-            <el-tab-pane label="历史提交" name="commit_history">
+            <template v-if="type!=='任务'">
+              <el-tab-pane label="历史提交" name="commit_history">
               <!-- 相关提交 -->
               <el-row class="entry-row" style="margin-top: 15px">
                 <el-table :data="commits">
@@ -176,6 +177,7 @@
                 </el-table>
               </el-row>
             </el-tab-pane>
+            </template>
           </el-tabs>
         </el-col>
       </el-row>