feat: add chinese workbench page
This commit is contained in:
@@ -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 />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user