xiaoxian521 %!s(int64=3) %!d(string=hai) anos
pai
achega
c266a675a2
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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
 if (unref(layoutTheme)) {
   let layout = unref(layoutTheme).layout;
+  let theme = unref(layoutTheme).theme;
+  addClassNameToHtmlTag({
+    scopeName: `layout-theme-${theme}`
+  });
   window.document.body.setAttribute("layout", layout);
 }