<template>
	<a-config-provider :locale="locale">
		<router-view v-if="$route.meta.fullpage" />
		<div v-else style="background: #F4F5F9">
			<Header />
			<div
				style="
					width: 100%;
					overflow-y: scroll;
					height: 100%;
					display: flex;
					justify-content: center;
					background-color: #f1f2f8;
				"
			>
				<div style="width: 1624px" class="admin-ui-container">
					<router-view></router-view>
				</div>
			</div>

			<!--				<Footer/>-->
		</div>
	</a-config-provider>
	<!--	<a-config-provider :locale="locale">-->
	<!--		1-->
	<!--		<router-view />-->
	<!--	</a-config-provider>-->
</template>

<script setup name="App">
	import i18n from '@/locales'
	import { globalStore } from '@/store'
	import Header from '@/views/portal/components/Header.vue'
	import Footer from '@/views/portal/components/Footer.vue'

	const store = globalStore()
	store.initTheme()
	const locale = i18n.global.messages.value[i18n.global.locale.value].lang

	onMounted(() => {
		console.log('经过我')
	})
</script>
