Update Footer.vue

This commit is contained in:
thehrz 2023-06-24 17:00:46 +08:00
parent 9e7b9155f3
commit 291cf5bd33
No known key found for this signature in database
GPG Key ID: 683658B4CAC43158

View File

@ -1,7 +1,7 @@
<script setup lang="ts">
const { t, availableLocales, locale } = useI18n()
const toggleLocales = () => {
function toggleLocales() {
// change to some real logic
const locales = availableLocales
locale.value = locales[(locales.indexOf(locale.value) + 1) % locales.length]