yrik 4 年 前
コミット
542be9edd9
1 ファイル変更12 行追加2 行削除
  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){