[vue/no-unused-vars] ‘index‘ is defined but never used. eslint-plugin-vue

白光耀
2023-12-01

eslint 报错 [vue/no-unused-vars] ‘index’ is defined but never used.

  1. 打开vscode,找到设置,搜索 setting.json
  2. 写入 如下配置,“vetur.validation.template”: false,
  3. 保存关闭后,重新打开
 类似资料: