fix levelbar bug

This commit is contained in:
Pan 2017-07-26 13:32:02 +08:00
parent 696ecddc72
commit 77ff823037
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<el-breadcrumb class="app-levelbar" separator="/">
<el-breadcrumb-item v-for="(item,index) in levelList" :key="item">
<router-link v-if='item.redirect==="noredirect"||index==levelList.length-1' to="" class="no-redirect">{{item.name}}</router-link>
<router-link v-else :to="item.path">{{item.name}}</router-link>
<router-link v-else :to="item.redirect||item.path">{{item.name}}</router-link>
</el-breadcrumb-item>
</el-breadcrumb>
</template>