<template>
  <relative-person-search-home @changeOperation="changeOperation" v-if="!operationType"   />
  <relative-person-search-edit  :current-op-obj="currentOpObj" :operation-type="operationType" @changeOperation="changeOperation" v-else  />
</template>

<script>
import RelativePersonSearchHome
  from "@/views/main/c-views/credit-information/commission-credit-information-database-search/relative-person-search/RelativePersonSearchHome.vue";
import RelativePersonSearchEdit
  from "@/views/main/c-views/credit-information/commission-credit-information-database-search/relative-person-search/RelativePersonSearchEdit.vue";
import {useClickRouterToHome} from "@/units/use-method/usePagination";
export default {
  name: "RelativePersonSearch",
  components: {RelativePersonSearchEdit, RelativePersonSearchHome},
  setup(){
    const {changeOperation,operationType,currentOpObj} =useClickRouterToHome();
    return {
      changeOperation,operationType,currentOpObj
    }
  }
}
</script>

<style scoped>

</style>