mirror of
https://github.com/chaos-zhu/easynode.git
synced 2026-10-07 15:57:53 +08:00
@@ -191,7 +191,7 @@ const useStore = defineStore('global', {
|
||||
localStorage.setItem('isDark', isDark)
|
||||
this.$patch({ isDark })
|
||||
}
|
||||
if (animate) {
|
||||
if (animate && typeof document.startViewTransition === 'function') {
|
||||
let transition = document.startViewTransition(() => {
|
||||
document.documentElement.classList.toggle('dark')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user