更新
This commit is contained in:
parent
da7329c8b3
commit
edf84fd9f4
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user