fix : 컴포넌트화

This commit is contained in:
Yesol Choi
2025-05-26 13:37:31 +09:00
parent 7a5c491554
commit 7edc101ade

View File

@@ -6,8 +6,18 @@ const notyf = useNotyf()
const loading = ref(false) const loading = ref(false)
const router = useRouter() const router = useRouter()
const props = defineProps<{
prcsNo: iPrcs
}>()
onBeforeMount(async ()=>{ onBeforeMount(async ()=>{
const result = await getDetailPrcs(history.state.key) let result = null
if(history.state.key === undefined) {
result = await getDetailPrcs(props.prcsNo)
} else {
result = await getDetailPrcs(history.state.key)
}
getDetailList(result) getDetailList(result)
}) })