Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed Nov 2, 2021
1 parent 6b151ea commit c266a67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/layout/components/setting/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c266a67

Please sign in to comment.