<transition-group name="breadcrumb">
        <el-breadcrumb-item v-for="(item,index)  in levelList" :key="item.title" v-if='item.title'>
          <span v-if='item.redirect==="noredirect"||index==levelList.length-1' class="no-redirect">{{ item.title }}</span>
          <router-link v-else :to="item.redirect||item.path">{{ item.title }}</router-link>
        </el-breadcrumb-item>
      </transition-group>

注意:

这里的 <transition-group> 的子元素不能使用 v-for 的index当做key

(Emitted value instead of an instance of Error) Do not use v-for index as key on                   

<transition-group> children, this is the same as not using keys.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 1970-01-01
  • 2022-12-23
  • 2022-12-23
  • 2023-03-20
  • 2021-05-26
猜你喜欢
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
相关资源
相似解决方案