v-model directives require no argument. 报错问题

1,302 阅读1分钟

看到好多文章说是vetur 修改

"vetur.validation.template": false, 和修改.eslintrc.js 'vue/no-v-model-argument': 'off',

反正都是不生效,查看了报错源头 vue/valid-v-model ,还是eslint的报错问题,根据文档修改了校验规则成功去掉报错

image.png

'vue/valid-v-model': 'off',