增加设置面板‘流式’、‘定宽’切换界面随之修改。
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<a-layout-header :class="[headerTheme, 'admin-header']">
|
||||
<div :class="['admin-header-wide', layout]">
|
||||
<div :class="['admin-header-wide', layout == 'side' ? layout : (fixedWidth == 2 ? layout : '')]">
|
||||
<router-link v-if="isMobile || layout === 'head'" to="/" :class="['logo', isMobile ? null : 'pc', headerTheme]">
|
||||
<img width="32" src="@/assets/img/logo.png" />
|
||||
<h1 v-if="!isMobile">{{systemName}}</h1>
|
||||
@@ -53,7 +53,7 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState('setting', ['theme', 'isMobile', 'layout', 'systemName', 'lang']),
|
||||
...mapState('setting', ['theme', 'isMobile', 'layout', 'systemName', 'lang', 'fixedWidth']),
|
||||
headerTheme () {
|
||||
if (this.layout == 'side' && this.theme.mode == 'dark' && !this.isMobile) {
|
||||
return 'light'
|
||||
|
||||
@@ -14,9 +14,11 @@
|
||||
}
|
||||
}
|
||||
.admin-header-wide{
|
||||
padding-left: 24px;
|
||||
&.head{
|
||||
max-width: 1400px;
|
||||
margin: auto;
|
||||
padding-left: 0;
|
||||
}
|
||||
&.side{
|
||||
padding-right: 12px;
|
||||
|
||||
Reference in New Issue
Block a user