feat: 添加多级菜单(嵌套路由)的功能

This commit is contained in:
郝先瑞
2022-02-16 23:56:42 +08:00
parent de62296701
commit 29dbc48589
6 changed files with 68 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
<template>
<div style="padding:30px;">
<el-alert :closable="false" title="菜单一级">
<router-view />
</el-alert>
</div>
</template>

View File

@@ -0,0 +1,7 @@
<template>
<div style="padding:30px;">
<el-alert :closable="false" title="菜单二级" type="success">
<router-view />
</el-alert>
</div>
</template>

View File

@@ -0,0 +1,5 @@
<template>
<div style="padding:30px;">
<el-alert :closable="false" title="菜单三级-1" type="error" />
</div>
</template>

View File

@@ -0,0 +1,5 @@
<template>
<div style="padding:30px;">
<el-alert :closable="false" title="菜单三级-2" type="warning" />
</div>
</template>