no message

Former-commit-id: 3b7c4afe114d493dc5e3d7b5a402f3644a53aae6
Former-commit-id: 31e98f23a8e1a8332ca8d6987bb4a15bbe79f1d9
Former-commit-id: 024177b8670be44b3a8ef44fb00c0bec9a5a5069
This commit is contained in:
liyang
2018-06-11 23:41:14 +08:00
parent c33e7f3c4a
commit b0dfd2f760
9 changed files with 10 additions and 10 deletions

View File

@@ -3,8 +3,8 @@
<!-- 顶栏 -->
<el-header>
<div class="logo-group" :style="{width: collapse ? asideWidthCollapse : asideWidth}">
<img v-if="collapse" src="@/assets/image/logo/header-icon-only.png">
<img v-else src="@/assets/image/logo/header.png">
<img v-if="collapse" :src="`/static/image/theme/${themeName}/logo/icon-only.png`">
<img v-else :src="`/static/image/theme/${themeName}/logo/all.png`">
</div>
<div class="toggle-aside-btn" @click="collapse = !collapse">
<d2-icon name="bars"/>
@@ -29,7 +29,7 @@
</template>
<script>
import { mapMutations } from 'vuex'
import { mapState, mapMutations } from 'vuex'
export default {
name: 'd2-layout-main',
components: {
@@ -46,6 +46,11 @@ export default {
asideWidthCollapse: '65px'
}
},
computed: {
...mapState({
themeName: state => state.theme.name
})
},
mounted () {
// 加载主题
this.loadTheme()