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