diff --git a/src/App.vue b/src/App.vue index e751a54..1c31f16 100755 --- a/src/App.vue +++ b/src/App.vue @@ -8,7 +8,7 @@
- + @@ -34,43 +34,21 @@ import Header from './components/Header.vue'; import Breadcrumb from './components/Breadcrumb.vue'; // import loadingAnimation from '@/assets/loadingAni.json' // 导入JSON文件 import GlobalLoading from '@/components/GlobalLoading1.vue' -// import ContentWithLoading from '@/components/ContentWithLoading' export default { data() { return { isCollapse: true, - // menuData: [ - // { - // index: '1', - // title: '父级菜单1', - // icon: 'el-icon-location', - // children: [ - // { index: '1-1', title: '子级菜单1-1', path: '/' }, - // { index: '1-2', title: 'ui页面', path: '/ui' } - // ] - // }, - // { - // index: '2', - // title: '父级菜单2', - // icon: 'el-icon-menu', - // children: [ - // { index: '2-1', title: '子级菜单2-1', path: '/about' }, - // { index: '2-2', title: '加盟耶main', path: '/franchise' } - // ] - // } - // ] }; }, components: { GlobalLoading, - // ContentWithLoading, SliderMenu, // Footer, Header, Breadcrumb }, computed: { - ...mapState(['menuData','showSidebar', 'showFooter', 'showHeader']) // 从Vuex映射showSidebar状态到组件的计算属性中 + ...mapState(['hosMenuData','slidermenu','customize','showSidebar', 'showFooter', 'showHeader']) // 从Vuex映射showSidebar状态到组件的计算属性中 }, mounted() { window.addEventListener('beforeunload', this.clearStorage); @@ -94,7 +72,6 @@ export default {