<template>
  <h3>这是Header</h3>
  <button @click="GoHome">GoHome</button>
</template>

<script setup>
import {useRoute, useRouter} from "vue-router";

const route = useRoute()
const router = useRouter()

function GoHome() {
    router.push({
      name: 'home',
      query: {...route.query}
    })
  }
</script>
