解决方法有两种:
修改eslint的配置规则:
"rules": {
"no-debugger": "off",
"no-console": "off",
"vue/multi-word-component-names": "off" //加上这一句尤其关键
}
Your linter just tells you, that your component name should be a multi word like MyTemp instead of just Temp.
网友评论