From 53ad72732f781e6c6d5ddb3776ea47aec010af8e Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 4 Aug 2025 09:39:21 +0000
Subject: (최겸) PQ/실사 수정 및 개발
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/pq/pq-input-tabs.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'components/pq/pq-input-tabs.tsx')

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",
-- 
cgit v1.2.3

