From 6eee7342f37e38fbd0b39fb06e58c81c97355fd0 Mon Sep 17 00:00:00 2001 From: dongmucat <1127093059@qq.com> Date: Mon, 27 Apr 2026 17:16:48 +0800 Subject: [PATCH] feat(subscription): add /dashboard/subscriptions route --- web/src/app/router.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/src/app/router.tsx b/web/src/app/router.tsx index 73cb0ff3..d7b564ca 100644 --- a/web/src/app/router.tsx +++ b/web/src/app/router.tsx @@ -104,6 +104,7 @@ const PromotionsPage = createRoleProtectedRouteComponent( ['SKILL_ADMIN', 'SUPER_ADMIN'], ) const MyStarsPage = createLazyRouteComponent(() => import('@/pages/dashboard/stars'), 'MyStarsPage') +const MySubscriptionsPage = createLazyRouteComponent(() => import('@/pages/dashboard/subscriptions'), 'MySubscriptionsPage') const NotificationsPage = createLazyRouteComponent(() => import('@/pages/notifications'), 'NotificationsPage') const TokensPage = createLazyRouteComponent(() => import('@/pages/dashboard/tokens'), 'TokensPage') const CliAuthPage = createLazyRouteComponent(() => import('@/pages/cli-auth'), 'CliAuthPage') @@ -325,6 +326,13 @@ const dashboardStarsRoute = createRoute({ component: MyStarsPage, }) +const dashboardSubscriptionsRoute = createRoute({ + getParentRoute: () => rootRoute, + path: 'dashboard/subscriptions', + beforeLoad: requireAuth, + component: MySubscriptionsPage, +}) + const dashboardNotificationsRoute = createRoute({ getParentRoute: () => rootRoute, path: 'dashboard/notifications', @@ -429,6 +437,7 @@ const routeTree = rootRoute.addChildren([ dashboardReviewDetailRoute, dashboardPromotionsRoute, dashboardStarsRoute, + dashboardSubscriptionsRoute, dashboardNotificationsRoute, dashboardTokensRoute, cliAuthRoute,