错误提示:
2 warnings found.
2 warnings potentially fixable with the `--fix` option.
Module Warning (from ./node_modules/eslint-loader/index.js):
warning: Require self-closing on Vue.js custom components () (vue/html-self-closing) at src\views\components-demo\json-editor.vue:3:5:
1 |
2 |
> 3 |
| ^
4 |
5 |
6 |
解决办法:
错误代码:
正确代码: