From edf84fd9f47150a758f77851c888f96e9fd81cd4 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Tue, 2 Jan 2024 18:01:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/gather/gather.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/gather/gather.vue b/pages/gather/gather.vue index 12fbc25..4596449 100644 --- a/pages/gather/gather.vue +++ b/pages/gather/gather.vue @@ -275,7 +275,7 @@ applet().then(res=>{ this.AllMenuList = res.data; this.initMenu(); - this.showControllerAllLet(); + // this.showControllerAllLet(); }).catch(e=>{ console.log(e); }) @@ -300,9 +300,9 @@ }, // 初始化菜单 initMenu() { - let now = uni.getStorageSync('gatherMenuList'); + let nowMenu = uni.getStorageSync('gatherMenuList'); try { - let list = JSON.parse(now); + let list = JSON.parse(nowMenu||'[]'); let now = []; let all = []; this.AllMenuList.forEach((item) => { @@ -313,6 +313,7 @@ this.nowMenuList = now; } catch (e) { this.nowMenuList = []; + console.log(e); } }, clickMenu(data) {