From f678531c25a7a68d9d82a4ca0e6d22ef5106949f Mon Sep 17 00:00:00 2001 From: Zheng Jie <201507802@qq.com> Date: Wed, 18 May 2022 13:54:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Settings/index.vue | 16 ---------------- src/layout/components/Sidebar/index.vue | 2 +- src/settings.js | 4 ---- src/store/modules/settings.js | 3 +-- 4 files changed, 2 insertions(+), 23 deletions(-) diff --git a/src/layout/components/Settings/index.vue b/src/layout/components/Settings/index.vue index 749de87..5cc5013 100644 --- a/src/layout/components/Settings/index.vue +++ b/src/layout/components/Settings/index.vue @@ -23,11 +23,6 @@ -
- 菜单UniqueOpened - -
- @@ -73,17 +68,6 @@ export default { value: val }) } - }, - uniqueOpened: { - get() { - return this.$store.state.settings.uniqueOpened - }, - set(val) { - this.$store.dispatch('settings/changeSetting', { - key: 'uniqueOpened', - value: val - }) - } } }, methods: { diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 50a35e9..7de5a7d 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -7,9 +7,9 @@ :collapse="isCollapse" :background-color="variables.menuBg" :text-color="variables.menuText" - :unique-opened="$store.state.settings.uniqueOpened" :active-text-color="variables.menuActiveText" :collapse-transition="false" + unique-opened mode="vertical" > diff --git a/src/settings.js b/src/settings.js index fc96165..fb49211 100644 --- a/src/settings.js +++ b/src/settings.js @@ -19,10 +19,6 @@ module.exports = { * @description 记住密码状态下的密码在Cookie中存储的天数,默认1天s */ passCookieExpires: 1, - /** - * @description 是否只保持一个子菜单的展开 - */ - uniqueOpened: true, /** * @description token key */ diff --git a/src/store/modules/settings.js b/src/store/modules/settings.js index 521885f..e1d620a 100644 --- a/src/store/modules/settings.js +++ b/src/store/modules/settings.js @@ -1,6 +1,6 @@ import variables from '@/assets/styles/element-variables.scss' import defaultSettings from '@/settings' -const { tagsView, fixedHeader, sidebarLogo, uniqueOpened, showFooter, footerTxt, caseNumber } = defaultSettings +const { tagsView, fixedHeader, sidebarLogo, showFooter, footerTxt, caseNumber } = defaultSettings const state = { theme: variables.theme, @@ -8,7 +8,6 @@ const state = { tagsView: tagsView, fixedHeader: fixedHeader, sidebarLogo: sidebarLogo, - uniqueOpened: uniqueOpened, showFooter: showFooter, footerTxt: footerTxt, caseNumber: caseNumber