<template>
	<div v-if="pageLoading">
		<el-main>
			<el-card shadow="never">
				<el-skeleton :rows="1"></el-skeleton>
			</el-card>
			<el-card shadow="never" style="margin-top: 15px">
				<el-skeleton></el-skeleton>
			</el-card>
		</el-main>
	</div>
	<widgets @on-mounted="onMounted"></widgets>
</template>

<script>
import { defineAsyncComponent } from "vue";
const widgets = defineAsyncComponent(() => import("./widgets"));

export default {
	name: "dashboard",
	components: {
		widgets,
	},
	data() {
		return {
			pageLoading: true,
		};
	},
	mounted() {
	},
	methods: {
		onMounted() {
			this.pageLoading = false;
		},
	},
};
</script>

<style></style>
