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.
RuoYi-Vue/ruoyi-ui-next/src/views/redirect.vue

18 lines
335 B

<template>
<div></div>
</template>
<script setup lang="ts">
import { useRoute, useRouter } from 'vue-router'
import { onMounted } from 'vue'
const route = useRoute()
const router = useRouter()
onMounted(() => {
const { params, query } = route
const { path } = params
router.replace({ path: `/${path}`, query })
})
</script>