From a812fee59d8051da5a59311ce5d0e0d5def44578 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 26 七月 2024 15:21:29 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia

---
 wechat_staff/api/index.js |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/wechat_staff/api/index.js b/wechat_staff/api/index.js
index 37d73b8..4157c97 100644
--- a/wechat_staff/api/index.js
+++ b/wechat_staff/api/index.js
@@ -331,9 +331,12 @@
   if(child){ 
     child.freshData();
   }
-  const enjoyList = wx.getStorageSync('enjoyList') || []; 
   var {info} = obj.data ;
-  const index = enjoyList.findIndex( i => i.id === info.id );
-   info.isEnjoy = index > -1;
-   obj.setData({ info:info})   ;
+  if(info){
+    const enjoyList = wx.getStorageSync('enjoyList') || []; 
+    const index = enjoyList.findIndex( i => i.id === info.id );
+    info.isEnjoy = index > -1;
+    obj.setData({ info:info}) ;
+  }
+  
 }
\ No newline at end of file

--
Gitblit v1.9.3