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

<script setup>
// 为了实现文件搜索的无缝传参
import { onMounted } from "vue";
import { useRouter, useRoute } from "vue-router";
onMounted(() => {
  let router = useRouter();
  let route = useRoute();
  const searchText = route.query.searchText;
  const searchData = route.query.searchData;
  router.replace({
    path: "/search",
    query: {
      searchData: searchData,
      searchText: searchText,
    },
  });
});
</script>

<style lang="scss" scoped>
</style>