xiaoxian521 %!s(int64=3) %!d(string=hai) anos
pai
achega
15ccd5db5b
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/layout/index.vue

+ 4 - 1
src/layout/index.vue

@@ -88,7 +88,10 @@ const handleClickOutside = (params: boolean) => {
 
 function setTheme(layoutModel: string) {
   window.document.body.setAttribute("layout", layoutModel);
-  instance.$storage.layout = { layout: `${layoutModel}` };
+  instance.$storage.layout = {
+    layout: `${layoutModel}`,
+    theme: instance.$storage.layout?.theme
+  };
 }
 
 // 监听容器