fix: remaining.ts中 路由name“Redirect”重复使用两次,在高版本的router会有影响

pull/633/head
吴翕然 2024-12-30 02:18:32 +08:00
parent 51cffa4e03
commit 2f6bb51ea4
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
children: [
{
path: '/redirect/:path(.*)',
name: 'Redirect',
name: 'RedirectChild',
component: () => import('@/views/Redirect/Redirect.vue'),
meta: {}
}

View File

@ -2,7 +2,7 @@
<div></div>
</template>
<script lang="ts" setup>
defineOptions({ name: 'Redirect' })
defineOptions({ name: 'RedirectChild' })
const { currentRoute, replace } = useRouter()
const { params, query } = unref(currentRoute)