<script setup>
import Cookies from 'js-cookie';

useHead({
  title: '普達國際',
  viewport: 'width=device-width, initial-scale=1, maximum-scale=1',
  charset: 'utf-8',
  meta: [
    { name: 'description', content: '普達國際,化工材料買賣' }
  ],
  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>
