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

<script>
import CreditRepairHome from "@/views/main/c-views/credit-data/credit-repair/CreditRepairHome.vue";
import CreditRepairEdit from "@/views/main/c-views/credit-data/credit-repair/CreditRepairEdit.vue";
import {useClickRouterToHome} from "@/units/use-method/usePagination";
export default {
  name: "CreditRepair",
  components: {CreditRepairEdit, CreditRepairHome},
  setup(){
    const {changeOperation,operationType,currentOpObj} =useClickRouterToHome();
    return {
      changeOperation,operationType,currentOpObj
    }
  }
}
</script>

<style scoped>

</style>