type and interface export statements must be on the top in <script setup>volar 把export放到代码上方就好了(script标签顶部) 报错解决~