vue3使用script setup时遇到的问题

使用script setup语法糖,无法定义组件name以至于keep-alive中的includes无效
<script setup>
import { reactive } from "vue";
const data = reactive({
   ...
})
</script>

//改为
<script>
import { reactive } from "vue";
export default {
   name: "component",
   setup() {
      const data = reactive({
         ...
      });
      return {
         data,
      }
   }
}
</script>