Feat(Theme): Support switch theme mode

This commit is contained in:
2024-10-23 18:53:21 +08:00
parent dc1c052f69
commit 3eebb33aa6
13 changed files with 230 additions and 142 deletions

View File

@@ -48,6 +48,7 @@ export const removeCookie = (name: string) => {
export const setLocalStorage = (name: string, value: string) => {
localStorage.setItem(name, value)
window.dispatchEvent(new Event('localStorageChange'))
}
export const getLocalStorage = (name: string) => {