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

@@ -1 +0,0 @@
d37095e66cfdce9f355275f0b0a92d6ac646c2af

View File

@@ -1 +0,0 @@
3fcdead32f4159d2c1a90ce6442632dc64e672a5

View File

@@ -1 +0,0 @@
5d8b6bdb850f8f23d983ed2e18518c7fad31ca00

View File

@@ -1 +0,0 @@
762198f6b192d9faef94d5eab316518f842f9c88

View File

@@ -1 +0,0 @@
762198f6b192d9faef94d5eab316518f842f9c88

View File

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

View File

@@ -6,12 +6,12 @@ export default {
{ {
name: 'd2admin 经典', name: 'd2admin 经典',
value: 'd2', value: 'd2',
preview: '/static/image/theme-preview/d2@2x.png' preview: '/static/image/theme/d2/preview.png'
}, },
{ {
name: '流星', name: '流星',
value: 'star', value: 'star',
preview: '/static/image/theme-preview/star@2x.png' preview: '/static/image/theme/star/preview.png'
} }
], ],
name: '' name: ''