From 9f2e74edef07b9fe0fae41a9256cdcf9873ff14e Mon Sep 17 00:00:00 2001
From: iczer <1126263215@qq.com>
Date: Sun, 21 Jun 2020 15:33:09 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=88=87=E6=8D=A2?=
=?UTF-8?q?=E8=89=B2=E5=BC=B1=E6=A8=A1=E5=BC=8F=E6=97=B6=EF=BC=8C=E4=B8=BB?=
=?UTF-8?q?=E9=A2=98=E9=A2=9C=E8=89=B2=E9=87=8D=E7=BD=AE=E9=97=AE=E9=A2=98?=
=?UTF-8?q?=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/setting/Setting.vue | 7 ++++--
src/config/index.js | 1 +
src/layouts/GlobalHeader.vue | 35 +++++++++++++++---------------
src/layouts/GlobalLayout.vue | 23 ++++++++++++++++----
src/layouts/HeaderNotice.vue | 6 ++---
src/store/modules/setting.js | 3 +++
6 files changed, 48 insertions(+), 27 deletions(-)
diff --git a/src/components/setting/Setting.vue b/src/components/setting/Setting.vue
index cc0572e..d4e4eea 100644
--- a/src/components/setting/Setting.vue
+++ b/src/components/setting/Setting.vue
@@ -29,7 +29,7 @@
固定Header
-
+
固定Siderbar
@@ -114,7 +114,7 @@ export default {
directions() {
return this.animates.find(item => item.name == this.animate).directions
},
- ...mapState('setting', ['animates', 'multiPage', 'weekMode'])
+ ...mapState('setting', ['animates', 'multiPage', 'weekMode', 'fixedHeader'])
},
methods: {
onColorChange (values, colors) {
@@ -153,6 +153,9 @@ export default {
direction: this.direction
}
this.$store.commit('setting/setAnimate', animate)
+ },
+ setFixedHeader(checked) {
+ this.$store.commit('setting/setFixedHeader', checked)
}
}
}
diff --git a/src/config/index.js b/src/config/index.js
index d599db8..7de7a98 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -3,6 +3,7 @@ module.exports = {
themeColor: '#1890ff',
theme: 'dark',
layout: 'side',
+ fixedHeader: false,
weekMode: false,
multiPage: false,
systemName: 'Vue Antd Admin',
diff --git a/src/layouts/GlobalHeader.vue b/src/layouts/GlobalHeader.vue
index 796d724..1fb8ce2 100644
--- a/src/layouts/GlobalHeader.vue
+++ b/src/layouts/GlobalHeader.vue
@@ -1,16 +1,16 @@
-
+
-
+
{{systemName}}
-