scorpio 3 년 전
부모
커밋
9dd50f6232
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      src/views/home/component/dash.vue

+ 1 - 4
src/views/home/component/dash.vue

@@ -8,7 +8,7 @@
         <span class="ml-5">项目总投资额<span
             class="main-color bold">{{ Number.parseFloat(num).toLocaleString() }}</span>万元</span>
       </div>
-      <div class="flex ml-20 hide-scrollbar" style="overflow-x: scroll;width: 86vw" v-if='stage.length > 0'>
+      <div class="flex ml-20 hide-scrollbar" style="overflow-x: scroll;width: 86vw" v-if='stage && stage.length > 0'>
         <div v-for="(item,index) in stage" :key='item.id' :class="active === index ? 'total-s' : 'total'"
              class="flex flex-col  flex-center mt-20 bold font-16 pointer"
              @click="switchTab(item,index)">
@@ -251,9 +251,6 @@ export default {
   },
   methods: {
     switchTab (item, index) {
-      if (item === null) {
-        return
-      }
       this.active = index
       this.onLoad({ stageId: item.id === -1 ? '' : item.id })
     },