打分上传后台
All checks were successful
Deploy to Server / deploy (push) Successful in 26s

This commit is contained in:
jeremygan2021
2026-03-12 13:47:21 +08:00
parent 1f693e0e8a
commit f23e477f57
4 changed files with 121 additions and 12 deletions

View File

@@ -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>

View File

@@ -8,6 +8,28 @@ export default defineConfig({
server: {
host: '0.0.0.0',
port: 5173,
proxy: {
'/api': {
target: 'http://backend:8000',
changeOrigin: true,
},
'/admin': {
target: 'http://backend:8000',
changeOrigin: true,
},
'/static': {
target: 'http://backend:8000',
changeOrigin: true,
},
'/media': {
target: 'http://backend:8000',
changeOrigin: true,
},
'/judge': {
target: 'http://backend:8000',
changeOrigin: true,
}
}
},
preview: {
host: '0.0.0.0',
@@ -29,6 +51,10 @@ export default defineConfig({
'/media': {
target: 'http://backend:8000',
changeOrigin: true,
},
'/judge': {
target: 'http://backend:8000',
changeOrigin: true,
}
}
}