<script setup lang="ts">
definePageMeta({
  middleware: [
    function (to) {
      if (to.path !== "/") {
        // 添加 redirectCode: 301 告诉搜索引擎该页面已永久移动
        return navigateTo("/", { redirectCode: 301 });
      }
    },
  ],
});
</script>

<template>
  <div></div>
</template>
