diff --git a/src/App.vue b/src/App.vue index 4406ab9..662c818 100755 --- a/src/App.vue +++ b/src/App.vue @@ -36,7 +36,7 @@ import Breadcrumb from './components/Breadcrumb.vue'; // import loadingAnimation from '@/assets/loadingAni.json' // 导入JSON文件 import GlobalLoading from '@/components/GlobalLoading1.vue' import SliderScondThree from '@/components/SliderScondThree.vue' -import store from "@/store"; +// import store from "@/store"; // import ContentWithLoading from '@/components/ContentWithLoading' export default { data() { @@ -58,8 +58,8 @@ export default { }, mounted() { window.addEventListener('beforeunload', this.clearStorage); - const menu_list = JSON.parse(localStorage.getItem('menu_list')) - store.commit('SET_SLIDER_MENU', menu_list); + // const menu_list = JSON.parse(localStorage.getItem('menu_list')) + // store.commit('SET_SLIDER_MENU', menu_list); console.log(this.secondMenu,'secondMenu===='); }, beforeUnmount() { diff --git a/src/router/index.js b/src/router/index.js index 23dffc5..900373b 100755 --- a/src/router/index.js +++ b/src/router/index.js @@ -562,7 +562,7 @@ router.beforeEach((to, from, next) => { first_child_router.forEach(item => { if (item.path === to.path) { store.commit('SET_CUSTOMIZE', false); - // store.commit('SET_SLIDER_MENU', 'menuData'); + store.commit('SET_SLIDER_MENU', 'menuData'); } }) }