<!-- src/components/Header.vue -->
<template>
  <div class="header">
    <div class="logo">
      <img src="@/assets/images/logo.png" alt="" />
    </div>
    <LanguageSelect v-model="languageStore.lang" @change="languageStore.changeLang" />
  </div>
</template>

<script setup lang="ts">

defineOptions({
  name: 'Header'
})
// 导入UI组件
import LanguageSelect from '@/components/LanguageSelect/index.vue'

// 导入Pinia状态
import { useLanguageStore } from '@/stores/modules/language'

// 创建Pinia状态实例
const languageStore = useLanguageStore()
</script>
