'admin-21.01.06:修复开启水印时,出现滚动条的bug'

This commit is contained in:
lyt-Top 2021-01-06 22:05:03 +08:00
parent ae10204281
commit 7c5f5b4361
2 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,7 @@ body,
-webkit-tap-highlight-color: transparent;
background-color: #f8f8f8;
font-size: 14px;
overflow: hidden;
}
/* 主布局样式

View File

@ -375,7 +375,9 @@ export default defineComponent({
attr === "grayscale"
? `grayscale(${getThemeConfig.value.isGrayscale ? 1 : 0})`
: `invert(${getThemeConfig.value.isInvert ? "80%" : "0%"})`;
document.body.setAttribute("style", `filter: ${cssAttr}`);
document
.getElementById("app")
.setAttribute("style", `filter: ${cssAttr}`);
};
const onWartermarkChange = () => {
getThemeConfig.value.isWartermark