wupengfei
2 天以前 5cc0cbeb28fa80bb734f007248eca2a4c69172c4
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>