u
This commit is contained in:
@@ -38,6 +38,9 @@ const OAuthAuthorizePage = lazy(() => import('./routes/oauth/OAuthAuthorizePage'
|
||||
const ArticleHistoryPage = lazy(() => import('./routes/infos/ArticleHistoryPage'));
|
||||
const GlobalHistoryPage = lazy(() => import('./routes/infos/GlobalHistoryPage'));
|
||||
const LedgerHistoryPage = lazy(() => import('./routes/infos/LedgerHistoryPage'));
|
||||
const CompanyAutomatDebugPage = import.meta.env.DEV
|
||||
? lazy(() => import('./routes/debug/CompanyAutomatPage'))
|
||||
: null;
|
||||
|
||||
function LoginRedirect() {
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
@@ -131,6 +134,19 @@ const routes = [
|
||||
{ path: ':entityId', element: <KundeEditPage /> },
|
||||
],
|
||||
},
|
||||
...(import.meta.env.DEV
|
||||
? [
|
||||
{
|
||||
path: 'debug',
|
||||
element: <SectionLayout sectionPath="/debug" />,
|
||||
children: [
|
||||
{ index: true, element: <CompanyAutomatDebugPage /> },
|
||||
{ path: 'company', element: <CompanyAutomatDebugPage /> },
|
||||
{ path: 'companyautomat', element: <CompanyAutomatDebugPage /> },
|
||||
],
|
||||
},
|
||||
]
|
||||
: []),
|
||||
{ path: '*', element: <Navigate to="/artikel" replace /> },
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user