错误详细信息:
error Component name "School" should always be multi-word vue/multi-word-component-names
原因:语法检查时把命名不规范当作语法错误。
解决办法:关闭语法检查
在vue.config.js中加入
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave:false /*关闭语法检查*/
})