feat: add SchedulesPageRoute.tsx

This commit is contained in:
tao.chen
2026-08-07 12:55:25 +08:00
parent 6f574073e3
commit e8de719523
2 changed files with 17 additions and 2 deletions
@@ -0,0 +1,15 @@
import { useScriptWorkspaceStore } from "../platform/state/scriptWorkspaceStore";
import { useUiStore } from "../platform/state/uiStore";
import SchedulePage from "./SchedulePage";
export default function SchedulesPageRoute() {
const setApiOnline = useScriptWorkspaceStore((s) => s.setApiOnline);
const pushToast = useUiStore((s) => s.pushToast);
return (
<SchedulePage
onNotify={pushToast}
onConnectionChange={setApiOnline}
/>
);
}
+2 -2
View File
@@ -9,11 +9,11 @@ export default defineConfig({
port: 5173, port: 5173,
proxy: { proxy: {
"/api": { "/api": {
target: process.env.VITE_GATEWAY_URL || "http://127.0.0.1:8890", target: "http://8.153.151.51:8890",
changeOrigin: true, changeOrigin: true,
}, },
"/jupyter": { "/jupyter": {
target: process.env.VITE_GATEWAY_URL || "http://127.0.0.1:8890", target: "http://8.153.151.51:8890",
changeOrigin: true, changeOrigin: true,
ws: true, ws: true,
}, },