解决方式:配置eslintrc.js;添加配置内容如下: "vue/html-self-closing": ["error", { "html": { "void": "never", "normal": "any", "component": "any" }, "svg": "always", "math": "always" }], 引用自