mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-07 02:57:51 +00:00
feat(subscription): add /dashboard/subscriptions route
This commit is contained in:
parent
f0c2403134
commit
6eee7342f3
1 changed files with 9 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue