Browse Source

♻ fix: Theme reset

chuzhixin 4 years ago
parent
commit
26de8f279a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/store/modules/settings.js

+ 2 - 2
src/store/modules/settings.js

@@ -12,8 +12,8 @@ const state = () => ({
   tabsBar: theme.tabsBar || tabsBar,
   logo,
   collapse: false,
-  layout: theme.layout || layout,
-  header: theme.header || header,
+  layout: theme.layout || { ...layout },
+  header: theme.header || { ...header },
   device: 'desktop',
   themeBar,
 })