mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 03:12:27 +09:00
fix : 컴포넌트화
This commit is contained in:
@@ -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)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user