解決方法有兩種:
修改eslint的配置規(guī)則:
"rules": {
"no-debugger": "off",
"no-console": "off",
"vue/multi-word-component-names": "off" //加上這一句尤其關(guān)鍵
}
Your linter just tells you, that your component name should be a multi word like MyTemp instead of just Temp.