解决方式: 检查script代码是否正确 示例1 <script setup> </script> 示例 2 <script> export default { setup () { return {} } } </script>