fix levelbar bug

This commit is contained in:
Pan 2017-07-26 13:32:48 +08:00
parent 99c47994a7
commit 428b785952
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<el-breadcrumb class="app-levelbar" separator="/"> <el-breadcrumb class="app-levelbar" separator="/">
<el-breadcrumb-item v-for="(item,index) in levelList" :key="item"> <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-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-item>
</el-breadcrumb> </el-breadcrumb>
</template> </template>