feat: add chinese workbench page

This commit is contained in:
hailin
2026-07-01 11:41:53 +08:00
parent 52bb354a1b
commit df8684f37d
3 changed files with 210 additions and 14 deletions

View File

@@ -5,9 +5,10 @@ import { SolutionListPage } from '@/features/solutions/SolutionListPage'
import { TicketCreatePage } from '@/features/tickets/TicketCreatePage'
import { TicketDetailPage } from '@/features/tickets/TicketDetailPage'
import { TicketListPage } from '@/features/tickets/TicketListPage'
import { WorkbenchPage } from '@/features/workbench/WorkbenchPage'
function getRoute() {
return window.location.hash.replace(/^#/, '') || '/tickets'
return window.location.hash.replace(/^#/, '') || '/'
}
export function Router() {
@@ -23,6 +24,10 @@ export function Router() {
return <DesignSystemPreview />
}
if (route === '/') {
return <WorkbenchPage />
}
if (route === '/solutions') {
return <SolutionListPage />
}
@@ -36,5 +41,5 @@ export function Router() {
return <TicketDetailPage ticketId={Number(ticketMatch[1])} />
}
return <TicketListPage />
return <WorkbenchPage />
}