fix(router): 按账号菜单落地避免创作者进入 404

This commit is contained in:
Zhou Weidong committed 2026-11-09 10:27:48 +08:00
1 parent 8535305185
commit 0d862dfe1d
2 files changed
+10 -2

No files matched your search

+2 -1
View File
@@ -8,9 +8,10 @@ import { AppIcons } from '@/constants/icons'
export const constantRouterMap: AppRouteRecordRaw[] = [
{
// 不写死 redirect:vue-router 会在守卫之前就把 '/' 解析成 redirect 目标,
// 创作者没有 /dashboard/index 路由会直接 404。落地页交给 permission.ts 按账号菜单决定。
path: '/',
component: Layout,
redirect: '/dashboard/index',
name: 'Root',
meta: {
hidden: true