wenhongquan 10 месяцев назад
Родитель
Сommit
77fb144bc6
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/views/car/vehicleService/serviceInfo.vue

+ 4 - 4
src/views/car/vehicleService/serviceInfo.vue

@@ -99,7 +99,7 @@
 
 
     const updateCarService = (id) =>{
-        
+
     }
 
     const deleteService = (id) => {
@@ -120,8 +120,8 @@
         listCarService(obj).then(res => {
             for (var index in res.rows) {
                 // console.log(dataName.value)
-                // console.log(res.rows[index][dataName.value].length)
-                if (res.rows[index][dataName.value].length > 2) {
+                console.log(res.rows[index][dataName.value])
+                if (res.rows[index][dataName.value] != null && res.rows[index][dataName.value].length > 2) {
                     serviceList.value.push(res.rows[index])
                 }
             }
@@ -136,4 +136,4 @@
     onMounted(() => {
 
     });
-</script>
+</script>