fix: BUG修改
This commit is contained in:
parent
32eac97ac2
commit
8fd0107ba3
@ -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);
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user