From ec7ffaa9c467e77e8c508bf0c79ea72d5878e359 Mon Sep 17 00:00:00 2001 From: hakadao Date: Sun, 7 Apr 2024 23:39:42 +0800 Subject: [PATCH] feat(Appearance): add wallpaper change watcher --- src/components/Settings/components/Appearance.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/Settings/components/Appearance.vue b/src/components/Settings/components/Appearance.vue index bc55ff29..6899ffea 100644 --- a/src/components/Settings/components/Appearance.vue +++ b/src/components/Settings/components/Appearance.vue @@ -66,6 +66,10 @@ const themeOptions = computed>(() => { ] }) +watch(() => settings.value.wallpaper, (newValue) => { + changeWallpaper(newValue) +}) + function changeThemeColor(color: string) { settings.value.themeColor = color }