no message
Former-commit-id: 3b7c4afe114d493dc5e3d7b5a402f3644a53aae6 Former-commit-id: 31e98f23a8e1a8332ca8d6987bb4a15bbe79f1d9 Former-commit-id: 024177b8670be44b3a8ef44fb00c0bec9a5a5069
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user