Răsfoiți Sursa

解决选择设备BUG

huang_an 1 an în urmă
părinte
comite
145beb5860
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      src/views/rulesManagement/components/MaterialAdd.vue

+ 3 - 1
src/views/rulesManagement/components/MaterialAdd.vue

@@ -47,7 +47,9 @@
               <span>{{ row.category.specification }}</span>
               <span>{{ row.category.specification }}</span>
             </template>
             </template>
             <template v-slot:pathName="{ row }">
             <template v-slot:pathName="{ row }">
-              <span>{{ row.position[0].pathName }}</span>
+              <span>{{
+                row.position.length > 0 ? row.position[0].pathName : ''
+              }}</span>
             </template>
             </template>
           </ele-pro-table>
           </ele-pro-table>
         </template>
         </template>