mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-04-06 03:57:54 +08:00
26 lines
478 B
Vue
26 lines
478 B
Vue
<script setup lang="ts">
|
|
import { useAppStore } from '@/store'
|
|
|
|
const appStore = useAppStore()
|
|
const options = [
|
|
{
|
|
label: 'English',
|
|
value: 'enUS',
|
|
},
|
|
{
|
|
label: '中文',
|
|
value: 'zhCN',
|
|
},
|
|
]
|
|
</script>
|
|
|
|
<template>
|
|
<n-popselect :value="appStore.lang" :options="options" trigger="click" @update:value="appStore.setAppLang">
|
|
<CommonWrapper>
|
|
<icon-park-outline-translate />
|
|
</CommonWrapper>
|
|
</n-popselect>
|
|
</template>
|
|
|
|
<style scoped></style>
|