对未设置 redirect 的父路由,访问时将自动重定向到允许访问的子路由

This commit is contained in:
Hooray
2025-05-05 00:58:15 +08:00
parent d572e6d933
commit 34c7e41028
21 changed files with 438 additions and 234 deletions
-1
View File
@@ -7,7 +7,6 @@ function Layout() {
const routes: RouteRecordRaw = {
path: '/tab_example',
component: Layout,
redirect: '/tab_example/index',
name: 'tabExample',
meta: {
title: '标签栏',