mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
Better show breadcrumb
This commit is contained in:
parent
2e82bdd162
commit
80f891f896
@ -2,8 +2,10 @@
|
||||
<div class="page-header">
|
||||
<div class="breadcrumb">
|
||||
<a-breadcrumb>
|
||||
<a-breadcrumb-item><a href="#/dashboard">首页</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item :key="item.path" v-for="item in breadcrumb">{{item.name}}</a-breadcrumb-item>
|
||||
<a-breadcrumb-item :key="item.path" v-for="(item, index) in breadcrumb">
|
||||
<span v-if="index === 0"><a href="#/dashboard/workplace">{{item.name}}</a></span>
|
||||
<span v-else>{{item.name}}</span>
|
||||
</a-breadcrumb-item>
|
||||
</a-breadcrumb>
|
||||
</div>
|
||||
<div class="detail">
|
||||
|
@ -37,7 +37,7 @@ export default new Router({
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
name: '首页',
|
||||
component: MenuView,
|
||||
redirect: '/login',
|
||||
icon: 'none',
|
||||
|
Loading…
x
Reference in New Issue
Block a user