type check

This commit is contained in:
Gauthier Roebroeck 2025-05-29 11:07:26 +08:00
parent 5180095750
commit ddceb83de0

View file

@ -32,7 +32,7 @@ const themeIcon = computed(
function cycleTheme() {
const index = themes.findIndex(x => x.value === appStore.theme)
const newIndex = (index + 1) % themes.length
appStore.theme = themes[newIndex]?.value
appStore.theme = themes[newIndex]!.value
}
</script>