@@ -104,10 +104,12 @@ export default {
menuWeekList()
.then(r => {
this.list = r || [];
+ localStorage.menuWeekList = JSON.stringify(this.list);
this.load = false;
})
.catch(() => {
+ if(localStorage.menuWeekList) this.list = JSON.parse(localStorage.menuWeekList);
});
document.title = "菜单";
},