renderer: specify return type in MainScreen.vue
This commit is contained in:
1 parent
4125047cc4
commit
251394391a
1 file changed
+3
-3
@@ -6,11 +6,11 @@ import Utils from '@/renderer/utils'
|
|||||||
const { locale } = useI18n()
|
const { locale } = useI18n()
|
||||||
const theme = useTheme()
|
const theme = useTheme()
|
||||||
|
|
||||||
const handleChangeTheme = () => {
|
const handleChangeTheme = () : void => {
|
||||||
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
|
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleChangeLanguage = () => {
|
const handleChangeLanguage = () : void => {
|
||||||
if (locale.value === 'en') {
|
if (locale.value === 'en') {
|
||||||
locale.value = 'ko'
|
locale.value = 'ko'
|
||||||
} else {
|
} else {
|
||||||
@@ -18,7 +18,7 @@ const handleChangeLanguage = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleAbout = async () => {
|
const handleAbout = async () : Promise<void> => {
|
||||||
await Utils.openExternal('https://github.com/jooy2/vutron')
|
await Utils.openExternal('https://github.com/jooy2/vutron')
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in new issue
Block a user