瀏覽代碼

fix: update

xiaoxian521 3 年之前
父節點
當前提交
15ccd5db5b
共有 1 個文件被更改,包括 4 次插入1 次删除
  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
+  };
 }
 
 // 监听容器