|
|
@ -1,6 +1,6 @@
|
|
|
|
import defaultSettings from '@/settings'
|
|
|
|
import defaultSettings from '@/settings'
|
|
|
|
|
|
|
|
|
|
|
|
const { sideTheme, showSettings, topNav, tagsView, fixedHeader, sidebarLogo, dynamicTitle } = defaultSettings
|
|
|
|
const { sideTheme, showSettings,poolNav, topNav, tagsView, fixedHeader, sidebarLogo, dynamicTitle } = defaultSettings
|
|
|
|
|
|
|
|
|
|
|
|
const storageSetting = JSON.parse(localStorage.getItem('layout-setting')) || ''
|
|
|
|
const storageSetting = JSON.parse(localStorage.getItem('layout-setting')) || ''
|
|
|
|
const state = {
|
|
|
|
const state = {
|
|
|
@ -9,6 +9,7 @@ const state = {
|
|
|
|
sideTheme: storageSetting.sideTheme || sideTheme,
|
|
|
|
sideTheme: storageSetting.sideTheme || sideTheme,
|
|
|
|
showSettings: showSettings,
|
|
|
|
showSettings: showSettings,
|
|
|
|
topNav: storageSetting.topNav === undefined ? topNav : storageSetting.topNav,
|
|
|
|
topNav: storageSetting.topNav === undefined ? topNav : storageSetting.topNav,
|
|
|
|
|
|
|
|
poolNav: poolNav,
|
|
|
|
tagsView: storageSetting.tagsView === undefined ? tagsView : storageSetting.tagsView,
|
|
|
|
tagsView: storageSetting.tagsView === undefined ? tagsView : storageSetting.tagsView,
|
|
|
|
fixedHeader: storageSetting.fixedHeader === undefined ? fixedHeader : storageSetting.fixedHeader,
|
|
|
|
fixedHeader: storageSetting.fixedHeader === undefined ? fixedHeader : storageSetting.fixedHeader,
|
|
|
|
sidebarLogo: storageSetting.sidebarLogo === undefined ? sidebarLogo : storageSetting.sidebarLogo,
|
|
|
|
sidebarLogo: storageSetting.sidebarLogo === undefined ? sidebarLogo : storageSetting.sidebarLogo,
|
|
|
|