refactor: simplify node editor page and update admin page registry
- Removed the redirect logic from the NodeEditorPage, now directly rendering the DataFlowPage component. - Updated the AdminPageRenderer to correctly register the new node editor page and adjust the cascading management imports for consistency. - Enhanced the dynamic import logic to streamline page loading and improve performance. Made-with: Cursor
This commit is contained in:
@@ -1,24 +1,7 @@
|
||||
"use client";
|
||||
|
||||
/**
|
||||
* 제어 시스템 페이지 (리다이렉트)
|
||||
* 이 페이지는 /admin/dataflow로 리다이렉트됩니다.
|
||||
*/
|
||||
|
||||
import { useEffect } from "react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import DataFlowPage from "../page";
|
||||
|
||||
export default function NodeEditorPage() {
|
||||
const router = useRouter();
|
||||
|
||||
useEffect(() => {
|
||||
// /admin/dataflow 메인 페이지로 리다이렉트
|
||||
router.replace("/admin/systemMng/dataflow");
|
||||
}, [router]);
|
||||
|
||||
return (
|
||||
<div className="flex h-screen items-center justify-center bg-muted">
|
||||
<div className="text-muted-foreground">제어 관리 페이지로 이동중...</div>
|
||||
</div>
|
||||
);
|
||||
return <DataFlowPage />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user