Ver Fonte

修改bug

695593266@qq.com há 8 meses atrás
pai
commit
25da65ede6
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      src/views/warehousing/index.vue

+ 4 - 1
src/views/warehousing/index.vue

@@ -15,7 +15,10 @@
         </template>
 
         <template v-slot:totalPackage="{ row }">
-          {{ row.totalPackage }}{{ row.detailList[0].packingUnit }}
+          {{ row.totalPackage
+          }}{{
+            row.detailList.length != 0 ? row.detailList[0].packingUnit : ''
+          }}
         </template>
 
         <template v-slot:totalWeight="{ row }">