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=>{
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) {