type check

This commit is contained in:
Gauthier Roebroeck 2025-05-29 11:07:26 +08:00
parent 0c0a09a7b6
commit 6f01f90b28

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>