Open zhipengbird opened 2 months ago
// 你的答案 <script setup> import { Teleport } from 'vue'; const msg = 'Hello World'; </script> <template> <!-- Renders it to a child element of the `body` --> <Teleport to="body"> <span>{{ msg }}</span> </Teleport> </template>