You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
367 B

  1. <script setup lang="ts">
  2. import { unref } from "vue";
  3. import { useRouter } from "vue-router";
  4. const { currentRoute, replace } = useRouter();
  5. const { params, query } = unref(currentRoute);
  6. const { path } = params;
  7. const _path = Array.isArray(path) ? path.join("/") : path;
  8. replace({
  9. path: "/" + _path,
  10. query
  11. });
  12. </script>
  13. <template>
  14. <div></div>
  15. </template>