895db48e by 任超

style:布局

1 parent 277bada3
......@@ -21,25 +21,15 @@
import { mapGetters } from 'vuex'
import Breadcrumb from '@/components/Breadcrumb'
import Hamburger from '@/components/Hamburger'
// import { getSession } from '@/utils/session'
export default {
components: {
Breadcrumb,
Hamburger
},
created () {
// this.init();
},
computed: {
...mapGetters(['sidebar', 'avatar', 'name'])
},
methods: {
// init () {
// let userInfo = getSession('userInfo');
// if (userInfo && userInfo.userValid === 0) {
// this.userValid = 0;
// }
// },
toggleSideBar () {
this.$store.dispatch('app/toggleSideBar')
},
......