This is an error caused by eslint verification:
The solution for Vue2
Enter the .eslintrc.js file and set:
rules: {
'vue/multi-word-component-names': 0,
},
module.exports = {
……
overrides: [
{
files: ['src/views/**/*.vue'],
rules: {
'vue/multi-word-component-names': 0,
},
},
]
}
Vue3's solution is similar
Configure the .eslintrc.cjs file:
rules: {
'vue/multi-word-component-names': 0,
}
The third way > turn off the verification of eslint, very rude
Also find eslintrc.js
the file and add the following code to its configuration:
// 关闭eslint校验
lintOnSave: false
After configuration, there is no error message: