Kaynağa Gözat

为空bug修复

wucl 1 gün önce
ebeveyn
işleme
ee5366eb86
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      src/views/home/todo.vue

+ 3 - 1
src/views/home/todo.vue

@@ -670,7 +670,8 @@ export default {
 
     // 个贷获取最新备注
     queryPersonalComments(businessIds){
-      queryLastComments(businessIds).then(res=>{
+      if (businessIds && businessIds.length>0){
+        queryLastComments(businessIds).then(res=>{
           if (res.code === 200){
               for (let i in this.personalListData){
                   for (let j in res.data){
@@ -681,6 +682,7 @@ export default {
               }
           }
       })
+      }
     }
   },
 };