diff --git a/src/App.vue b/src/App.vue index b1f8dc2..ee20294 100644 --- a/src/App.vue +++ b/src/App.vue @@ -21,7 +21,6 @@ import { ref, provide, watch } from 'vue'; const isDark = ref(localStorage.getItem('theme') === 'dark'); provide('isDark', isDark); -watch(isDark, val => localStorage.setItem('theme', val ? 'dark' : 'light'));