<template>
 <keep-alive include="DataSyncHandleTableHome">
   <data-sync-handle-table-home v-if="!operationType" @changeOperation="changeOperation"/>
   <data-sync-handle-table-detail :current-op-obj="currentOpObj"  v-else @changeOperation="changeOperation"/>
 </keep-alive>
</template>

<script>
import DataSyncHandleTableHome
  from "@/view/other/c-views/data-watch/data-sync-handle-watch/data-sync-handle-table/DataSyncHandleTableHome.vue";
import {useClickRouterToHome} from "@/unit/use-method/usePagination";
import DataSyncHandleTableDetail
  from "@/view/other/c-views/data-watch/data-sync-handle-watch/data-sync-handle-table/DataSyncHandleTableDetail.vue";

export default {
  name: "DataSyncHandleTable",
  components: {DataSyncHandleTableDetail, DataSyncHandleTableHome},
  setup() {
    const {currentOpObj,changeOperation,operationType} = useClickRouterToHome()
    return {
      currentOpObj,changeOperation,operationType
    }
  }
}
</script>

<style scoped lang="scss">

</style>
