diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-08-04 09:39:21 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-08-04 09:39:21 +0000 |
| commit | 53ad72732f781e6c6d5ddb3776ea47aec010af8e (patch) | |
| tree | e676287827f8634be767a674b8ad08b6ed7eb3e6 /components/pq | |
| parent | 3e4d15271322397764601dee09441af8a5b3adf5 (diff) | |
(최겸) PQ/실사 수정 및 개발
Diffstat (limited to 'components/pq')
| -rw-r--r-- | components/pq/pq-input-tabs.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/pq/pq-input-tabs.tsx b/components/pq/pq-input-tabs.tsx index b84d9167..d72eff92 100644 --- a/components/pq/pq-input-tabs.tsx +++ b/components/pq/pq-input-tabs.tsx @@ -76,6 +76,7 @@ import { ProjectPQ, } from "@/lib/pq/service" import { PQGroupData } from "@/lib/pq/service" +import { useRouter } from "next/navigation" // ---------------------------------------------------------------------- // 1) Define client-side file shapes @@ -148,7 +149,7 @@ export function PQInputTabs({ const [showConfirmDialog, setShowConfirmDialog] = React.useState(false) const { toast } = useToast() - + const router = useRouter() // ---------------------------------------------------------------------- // A) Create initial form values // Mark items as "saved" if they have existing answer or attachments @@ -414,7 +415,8 @@ export function PQInputTabs({ description: "Your PQ information has been submitted successfully", }) // 제출 후 페이지 새로고침 또는 리디렉션 처리 - window.location.reload() + router.refresh() + // window.location.reload() } else { toast({ title: "Submit Error", |
