新建layout目录
登录成功后,跳转layout布局容器页面
login页面:
导入router
import router from "@/router";
登录成功,跳转后台管理页面
选用布局容器:
<template>
<div class="common-layout">
<el-container>
<el-aside width="200px">Aside</el-aside>
<el-container>
<el-header>Header</el-header>
<el-main>Main</el-main>
</el-container>
</el-container>
</div>
</template>