|
|
|
@ -1,4 +1,3 @@
@@ -1,4 +1,3 @@
|
|
|
|
|
import variables from '@/assets/styles/element-variables.scss' |
|
|
|
|
import defaultSettings from '@/settings' |
|
|
|
|
|
|
|
|
|
const { sideTheme, showSettings, topNav, tagsView, fixedHeader, sidebarLogo, dynamicTitle } = defaultSettings |
|
|
|
@ -6,7 +5,7 @@ const { sideTheme, showSettings, topNav, tagsView, fixedHeader, sidebarLogo, dyn
@@ -6,7 +5,7 @@ const { sideTheme, showSettings, topNav, tagsView, fixedHeader, sidebarLogo, dyn
|
|
|
|
|
const storageSetting = JSON.parse(localStorage.getItem('layout-setting')) || '' |
|
|
|
|
const state = { |
|
|
|
|
title: '', |
|
|
|
|
theme: storageSetting.theme || variables.theme, |
|
|
|
|
theme: storageSetting.theme || '#409EFF', |
|
|
|
|
sideTheme: storageSetting.sideTheme || sideTheme, |
|
|
|
|
showSettings: showSettings, |
|
|
|
|
topNav: storageSetting.topNav === undefined ? topNav : storageSetting.topNav, |
|
|
|
|