Explorar el Código

为空bug修复

wucl hace 1 día
padre
commit
ee5366eb86
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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 {
               }
           }
       })
+      }
     }
   },
 };