wupengfei
9 天以前 a50d68e2f407789cde52e87f5d5285456b0f5f46
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<template>
  <div></div>
</template>
 
<script setup lang="ts">
const route = useRoute();
const router = useRouter();
onBeforeMount(async () => {
  const { params, query } = route;
  const { path } = params;
  await nextTick();
  router.replace({ path: '/' + path, query });
});
</script>