You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
677 B

<script setup>
import Cookies from 'js-cookie';
const { t } = useI18n();
useHead({
title: t('title'),
viewport: 'width=device-width, initial-scale=1, maximum-scale=1',
charset: 'utf-8',
meta: [
{ name: 'description', content: t('description') },
{ name: 'keywords', content: t('keywords') }
],
bodyAttrs: {
}
})
import useStore from '@/store';
const store = useStore();
store.getConfig();
//檢查cookie i18n_redirected是否存在不存在就設定語系
if(!Cookies.get('i18n_redirected')){
Cookies.set('i18n_redirected', 'tw');
}
</script>
<template>
<div>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</div>
</template>