搜尽各大神 最后得出原因是eslint检测出现bug

解决方法有两种

  1. v-for 后添加 :key=‘item’
    1. 在build处关闭eslint检测
      vue 出现Elements in iteration expect to have 'v-bind:key' directives问题
      个人感觉这个语法检测功能很有点过于严格,用起来十分难受,所以果断关闭eslint,找到webpack.base.conf.js注释下面代码

    相关文章:

    • 2021-04-01
    • 2021-10-25
    • 2022-12-23
    • 2022-12-23
    • 2022-02-25
    • 2022-12-23
    • 2021-05-01
    猜你喜欢
    • 2022-01-17
    • 2021-07-12
    • 2021-10-01
    • 2021-11-02
    • 2021-12-24
    • 2021-07-18
    相关资源
    相似解决方案