From abfd90c537f37fe34d402c484e7ffaa794a64b08 Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Mon, 26 Jun 2023 16:43:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/changeTheme/index.vue | 10 ++++++++-- src/views/home/index.vue | 3 +++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/changeTheme/index.vue b/src/components/changeTheme/index.vue index db4804a..6dd0387 100644 --- a/src/components/changeTheme/index.vue +++ b/src/components/changeTheme/index.vue @@ -1,8 +1,8 @@ @@ -10,6 +10,12 @@ import { ref, reactive, nextTick, computed } from "vue"; 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: invert(80%)"); + changePrimary(val); +};