mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-20 10:36:38 +08:00
18 lines
402 B
Vue
18 lines
402 B
Vue
<script setup lang="tsx">
|
|
import { computed } from 'vue';
|
|
import { zhCN } from 'pro-naive-ui';
|
|
import { useAppStore } from '@/store/modules/app';
|
|
|
|
const appStore = useAppStore();
|
|
|
|
const locale = computed(() => {
|
|
return appStore.locale === 'zh-CN' ? zhCN : undefined;
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<ProConfigProvider :locale="locale" class="h-full">
|
|
<slot></slot>
|
|
</ProConfigProvider>
|
|
</template>
|