搜尽各大神 最后得出原因是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注释下面代码

    相关文章: