<script >
export default {
name: 'CustomName',
inheritAttrs: false,
customOptions: {}
}
</script>
<script setup lang='ts' >
// ............
</script>
解决方案:
<script lang='ts' >
export default {
name: 'CustomName',
inheritAttrs: false,
customOptions: {}
}
</script>
<script setup lang='ts' >
// ............
</script>