From 10cb691dff33667de42390fa83a7dca630a060fe Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Sat, 28 Aug 2021 17:13:39 +0800 Subject: [PATCH] 报警的 --- custom-tab-bar/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) //如果是有定义自定义导航的小程序链接 -- libgit2 0.21.4