Skip to content

Commit

Permalink
fix: 修复主题打包报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhao1999 committed Jul 29, 2022
1 parent fe52d04 commit 9e22796
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/hooks/useTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { useColorMode, useCycleList, usePreferredDark } from "@vueuse/core";

const mode = useColorMode({
modes: {
light: "light",
dark: "dark",
sky: "sky"
}
});
Expand All @@ -15,7 +13,7 @@ if (preferredDark.value && color === "auto") {
mode.value = "dark";
}

const { next, state } = useCycleList(["light", "dark", "sky"], {
const { next, state } = useCycleList<any>(["light", "dark", "sky"], {
initialValue: mode
});

Expand Down

0 comments on commit 9e22796

Please sign in to comment.