feat: 添加多级菜单(嵌套路由)的功能
This commit is contained in:
7
src/views/nested/level1/index.vue
Normal file
7
src/views/nested/level1/index.vue
Normal file
@@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<div style="padding:30px;">
|
||||
<el-alert :closable="false" title="菜单一级">
|
||||
<router-view />
|
||||
</el-alert>
|
||||
</div>
|
||||
</template>
|
||||
7
src/views/nested/level1/level2/index.vue
Normal file
7
src/views/nested/level1/level2/index.vue
Normal file
@@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<div style="padding:30px;">
|
||||
<el-alert :closable="false" title="菜单二级" type="success">
|
||||
<router-view />
|
||||
</el-alert>
|
||||
</div>
|
||||
</template>
|
||||
5
src/views/nested/level1/level2/level3/index1.vue
Normal file
5
src/views/nested/level1/level2/level3/index1.vue
Normal file
@@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<div style="padding:30px;">
|
||||
<el-alert :closable="false" title="菜单三级-1" type="error" />
|
||||
</div>
|
||||
</template>
|
||||
5
src/views/nested/level1/level2/level3/index2.vue
Normal file
5
src/views/nested/level1/level2/level3/index2.vue
Normal file
@@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<div style="padding:30px;">
|
||||
<el-alert :closable="false" title="菜单三级-2" type="warning" />
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user