fix: BUG修改

This commit is contained in:
kun 2023-06-26 18:51:26 +08:00
parent 32eac97ac2
commit 8fd0107ba3

View File

@ -12,7 +12,7 @@ import { useTheme } from "@/hooks/useTheme";
const { changePrimary } = useTheme();
const changePrimaryVal = (val: string) => {
const body = document.body as HTMLElement;
// body.setAttribute("style", "filter: hue-rotate(90deg);");
body.setAttribute("style", `filter: opacity(0.7);background-color: ${val};`);
// body.setAttribute("style", "filter: invert(80%)");
changePrimary(val);
};