“xxx”is defined but never used

原因:使用了eslint检查

解决:可以在报错的那一行上面加上如下注释

<!-- eslint-disable-next-line -->

<!-- eslint-disable-next-line -->
<el-row v-for="(item1,i1) in scope.row.children" :key="item1.id">

我这里是使用了i1,但是还好没有使用到,就会报错,但是使用了该注释,就完美解决这个问题了
posted @ 2020-11-25 17:33  司徒二条  阅读(339)  评论(0编辑  收藏  举报