<template>
  <div class="breadCrumb flex-h">
    <span>当前页面路径：</span>
    <el-breadcrumb separator="/">
      <el-breadcrumb-item v-for="(item,index) in list" :key="index">
        <router-link v-if="index==0" :to="{name:item.Url,query:{}}">{{item.MenuName}}</router-link>
        <router-link v-if="index!=0" :to="{name:item.Url,query:{}}">{{item.MenuName}}</router-link>
      </el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>

<script>
export default {
  name: '',
  props: ['list'],
  data () {
    return {

    }
  },
  mounted () {
    this.$nextTick(function () {

    })
  },
  methods: {

  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
@import "page.scss";
</style>
