

<template>
	<el-config-provider :locale="locale">
		<router-view />
		<el-drawer v-model="mobileSidebarOpen" class="md:hidden" title="菜单" size="260px">
			<Sidebar />
		</el-drawer>
	</el-config-provider>
</template>

<script setup>
import zhCn from 'element-plus/es/locale/lang/zh-cn'
const locale = zhCn
import Sidebar from '@/layouts/components/Sidebar.vue'
import { mobileSidebarOpen } from '@/composables/ui.js'
</script>

<style>
/* 自定义顶部加载 Loading 颜色 */
#nprogress .bar {
	background: #2563eb !important;
}
</style>
