<template>
 <keep-alive include="UnitWatchHome">
   <unit-watch-home v-if="!operationType" @changeOperation="changeOperation"/>
   <unit-watch-detail :current-op-obj="currentOpObj" :operation-type="operationType" v-else @changeOperation="changeOperation"/>
 </keep-alive>
</template>

<script>
import UnitWatchDetail from "@/view/other/c-views/data-watch/data-gather-watch/unit-watch/UnitWatchDetail.vue";
import UnitWatchHome from "@/view/other/c-views/data-watch/data-gather-watch/unit-watch/UnitWatchHome.vue";
import {useClickRouterToHome} from "@/unit/use-method/usePagination";

export default {
  name: "UnitWatch",
  components: {UnitWatchHome, UnitWatchDetail},
  setup() {
    const {changeOperation,currentOpObj,operationType} = useClickRouterToHome()
    return {
      changeOperation,currentOpObj,operationType
    }
  }
}
</script>

<style scoped lang="scss">

</style>
