refactor: bpm
This commit is contained in:
@@ -19,14 +19,14 @@ const detailData = ref<BpmOALeaveApi.LeaveVO>();
|
||||
const { query } = useRoute();
|
||||
const queryId = computed(() => query.id as string);
|
||||
|
||||
const getDetailData = async () => {
|
||||
async function getDetailData() {
|
||||
try {
|
||||
datailLoading.value = true;
|
||||
detailData.value = await getLeave(Number(props.id || queryId.value));
|
||||
} finally {
|
||||
datailLoading.value = false;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
getDetailData();
|
||||
|
||||
Reference in New Issue
Block a user