瀏覽代碼

feat: update

xiaoxian521 3 年之前
父節點
當前提交
c266a675a2
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/layout/components/setting/index.vue

+ 4 - 0
src/layout/components/setting/index.vue

@@ -60,6 +60,10 @@ let layoutTheme =
 // body添加layout属性,作用于src/style/sidebar.scss
 // body添加layout属性,作用于src/style/sidebar.scss
 if (unref(layoutTheme)) {
 if (unref(layoutTheme)) {
   let layout = unref(layoutTheme).layout;
   let layout = unref(layoutTheme).layout;
+  let theme = unref(layoutTheme).theme;
+  addClassNameToHtmlTag({
+    scopeName: `layout-theme-${theme}`
+  });
   window.document.body.setAttribute("layout", layout);
   window.document.body.setAttribute("layout", layout);
 }
 }