Newer
Older
KaiFengPC / src / views / redirect / index.vue
@zhangdeliang zhangdeliang on 23 May 267 bytes 初始化项目
  1. <template>
  2. <div></div>
  3. </template>
  4.  
  5. <script setup>
  6. import { useRoute, useRouter } from 'vue-router'
  7.  
  8. const route = useRoute();
  9. const router = useRouter();
  10. const { params, query } = route
  11. const { path } = params
  12.  
  13. router.replace({ path: '/' + path, query })
  14. </script>