This commit is contained in:
Pan 2019-04-04 13:40:26 +08:00
parent 1a447a2596
commit 6d63ce19cf
1 changed files with 20 additions and 21 deletions

View File

@ -1,4 +1,3 @@
<template> <template>
<div :class="{'has-logo':showLogo}"> <div :class="{'has-logo':showLogo}">
<logo v-if="showLogo" :collapse="isCollapse" /> <logo v-if="showLogo" :collapse="isCollapse" />
@ -19,11 +18,11 @@
</template> </template>
<script> <script>
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import Logo from './Logo' import Logo from './Logo'
import SidebarItem from './SidebarItem' import SidebarItem from './SidebarItem'
import variables from '@/styles/variables.scss' import variables from '@/styles/variables.scss'
export default { export default {
components: { SidebarItem, Logo }, components: { SidebarItem, Logo },
computed: { computed: {
...mapGetters([ ...mapGetters([
@ -40,5 +39,5 @@
return !this.sidebar.opened return !this.sidebar.opened
} }
} }
} }
</script> </script>