<template>
  <data-life-cycle-home v-if="!operationType" @changeOperation="changeOperation"/>
  <data-life-cycle-detail :current-op-obj="currentOpObj"  v-else @changeOperation="changeOperation"/>
</template>

<script>
import DataLifeCycleHome
  from "@/view/other/c-views/data-watch/data-sync-handle-watch/data-life-cycle/DataLifeCycleHome.vue";


import {useClickRouterToHome} from "@/unit/use-method/usePagination";
import DataLifeCycleDetail
  from "@/view/other/c-views/data-watch/data-sync-handle-watch/data-life-cycle/DataLifeDetail.vue";

export default {
  name: "DataLifeCycle",
  components: {DataLifeCycleDetail, DataLifeCycleHome},
  setup() {
   const {currentOpObj,operationType,changeOperation} = useClickRouterToHome()

    return {
      currentOpObj,operationType,changeOperation
    }
  }
}
</script>

<style scoped lang="scss">

</style>
