yrik hace 4 años
padre
commit
542be9edd9
Se han modificado 1 ficheros con 12 adiciones y 2 borrados
  1. 12 2
      ruoyi-ui/src/views/index.vue

+ 12 - 2
ruoyi-ui/src/views/index.vue

@@ -130,12 +130,22 @@
       },
       zj_btn() {
         getUnitAmountList().then(res => {
-          this.zjList = res.rows
+          if(res.rows == null){
+            this.zjList = []
+          }else{
+            this.zjList = res.rows
+          }
+
         })
       },
       bd_btn() {
         getUnitList().then(res =>{
-          this.unitList = res.rows
+          if(res.rows == null){
+            this.unitList = []
+          }else{
+            this.unitList = res.rows
+          }
+          
         })
       },
       dec_btn(row){