This commit is contained in:
weipengfei 2024-01-02 18:01:54 +08:00
parent da7329c8b3
commit edf84fd9f4

View File

@ -275,7 +275,7 @@
applet().then(res=>{ applet().then(res=>{
this.AllMenuList = res.data; this.AllMenuList = res.data;
this.initMenu(); this.initMenu();
this.showControllerAllLet(); // this.showControllerAllLet();
}).catch(e=>{ }).catch(e=>{
console.log(e); console.log(e);
}) })
@ -300,9 +300,9 @@
}, },
// //
initMenu() { initMenu() {
let now = uni.getStorageSync('gatherMenuList'); let nowMenu = uni.getStorageSync('gatherMenuList');
try { try {
let list = JSON.parse(now); let list = JSON.parse(nowMenu||'[]');
let now = []; let now = [];
let all = []; let all = [];
this.AllMenuList.forEach((item) => { this.AllMenuList.forEach((item) => {
@ -313,6 +313,7 @@
this.nowMenuList = now; this.nowMenuList = now;
} catch (e) { } catch (e) {
this.nowMenuList = []; this.nowMenuList = [];
console.log(e);
} }
}, },
clickMenu(data) { clickMenu(data) {