浏览代码

为空bug修复

wucl 1 天之前
父节点
当前提交
ee5366eb86
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/home/todo.vue

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

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