<!--前端模板-->
<template>
	<div class="common-layout">
		<el-container>
			<el-header>
			<nav-navigation1></nav-navigation1>
			</el-header>
			<el-main class="main">
				<div class="container">
					<el-row :gutter="20">
						<el-col :span="6">
							<el-menu
								default-active=""
								router
							>
								<el-menu-item  v-for="item in state.userMenu" :index="item.path">
									<span>{{item.name}}</span>
								</el-menu-item>
							</el-menu>
						</el-col>
						<el-col :span="18">
							<router-view></router-view>
						</el-col>
					</el-row>
				</div>
			</el-main>
		</el-container>
	</div>
</template>


<script setup lang="ts">
import { reactive } from 'vue'
const  state = reactive({
	userMenu:[
		{name: '个人中心', path: '/front/user'},
		{name: '用户订单', path: '/front/user/order'},
	]
})

</script>
<style scoped>

.main{
	width: 100%;
	height: calc(100vh - 60px);
	background-color: #f3f3f4;
}
.container{
	width: 1200px;
	margin: 0 auto;
}

</style>
