diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js index 80fd4a5..2cf2e5b 100644 --- a/custom-tab-bar/index.js +++ b/custom-tab-bar/index.js @@ -52,7 +52,7 @@ Component({ }).then(res => { getApp().globalData.is_read=true; var e = res; - if(e.data.code != -1){ + if(e.data.code != -1 && e.data.data && e.data.data.data){ var itemList = e.data.data.data; itemList = JSON.parse(itemList) //如果是有定义自定义导航的小程序链接