feat(Appearance): add wallpaper change watcher

This commit is contained in:
hakadao
2024-04-07 23:39:42 +08:00
parent b00d9b2710
commit ec7ffaa9c4

View File

@@ -66,6 +66,10 @@ const themeOptions = computed<Array<{ value: string, label: string }>>(() => {
]
})
watch(() => settings.value.wallpaper, (newValue) => {
changeWallpaper(newValue)
})
function changeThemeColor(color: string) {
settings.value.themeColor = color
}