error
Component name “**” should always be multi-word vue/multi-word-component-names
根据提示信息可知是组件名出了问题,官方是推荐我们使用大驼峰的命名方式去命名文件的
解决方案
1.修改组件名,例如:kebab-case命名(my-school)或者CamelCase命名(MySchool 需要Vue脚手架支持
)。
2.修改配置项,关闭语法检查
修改vue.config.js文件
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave:false /*关闭语法检查*/
})