From 1c0d53fe69f4fe442810d2ccc0cd44ca54931393 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 03 一月 2023 14:45:29 +0800
Subject: [PATCH] 1.优化系统搜索栏布局
---
src/layout/components/Settings/index.vue | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/layout/components/Settings/index.vue b/src/layout/components/Settings/index.vue
index bf4ec0a..6f82418 100644
--- a/src/layout/components/Settings/index.vue
+++ b/src/layout/components/Settings/index.vue
@@ -28,6 +28,7 @@
inactive-color="#ccc"
active-text="妯悜"
inactive-text="绔栧悜"
+ @change="sidebar.opened=true"
/>
</div>
<div class="drawer-item" style="display: flex;justify-content: space-between">
@@ -84,6 +85,7 @@
<script>
import ThemePicker from '@/components/ThemePicker'
+import { mapGetters } from 'vuex'
export default {
components: { ThemePicker },
@@ -101,7 +103,15 @@
]
}
},
+ mounted() {
+ if (this.$store.state.settings.menuIsHorizontal) {
+ this.sidebar.opened = true
+ }
+ },
computed: {
+ ...mapGetters([
+ 'sidebar'
+ ]),
fixedHeader: {
get() {
return this.$store.state.settings.fixedHeader
--
Gitblit v1.9.3