mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-16 19:02:01 +08:00
fix(router): 修正根路由匹配逻辑和仪表板路由路径
修正根路由匹配逻辑,从基于路径匹配改为同时检查名称和路径,以避免潜在的路由冲突。同时将仪表板模块的基础路径从'/'改为'/dashboard',以改善路由结构。
This commit is contained in:
@@ -16,7 +16,7 @@ const routes: RouteRecordRaw[] = [
|
||||
title: $t('page.dashboard.title'),
|
||||
},
|
||||
name: 'Dashboard',
|
||||
path: '/',
|
||||
path: '/dashboard',
|
||||
redirect: '/analytics',
|
||||
children: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user