This commit is contained in:
@@ -24,6 +24,14 @@ import './App.css';
|
||||
|
||||
const queryClient = new QueryClient();
|
||||
|
||||
function JudgeLoginRedirect() {
|
||||
React.useEffect(() => {
|
||||
window.location.replace('/judge/login/');
|
||||
}, []);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<QueryClientProvider client={queryClient}>
|
||||
@@ -46,6 +54,7 @@ function App() {
|
||||
<Route path="/my-orders" element={<MyOrders />} />
|
||||
<Route path="/product/:id" element={<ProductDetail />} />
|
||||
<Route path="/payment/:orderId" element={<Payment />} />
|
||||
<Route path="/judge-login" element={<JudgeLoginRedirect />} />
|
||||
</Routes>
|
||||
</Layout>
|
||||
</BrowserRouter>
|
||||
|
||||
Reference in New Issue
Block a user