diff --git a/src/router/index.js b/src/router/index.js index fbb5d0b..cd9abeb 100755 --- a/src/router/index.js +++ b/src/router/index.js @@ -605,12 +605,12 @@ router.beforeEach((to, from, next) => { if (item.path === to.path) { store.commit('SET_CUSTOMIZE', false); store.commit('SET_SLIDER_MENU', 'menuData'); - - const menu_list = JSON.parse(localStorage.getItem('menu_list')) - if(menu_list) store.commit('SET_SLIDER_MENU', menu_list); } }) } + const menu_list = JSON.parse(localStorage.getItem('menu_list')) + if(menu_list) store.commit('SET_SLIDER_MENU', menu_list); + if (to.path.includes('/super/ranking/')) { //匹配包含此路径的 侧边栏数据 store.commit('SET_CARRY_PARAM', false); store.commit('SET_CUSTOMIZE', true);