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

<script>
import TaskWatchHome from "@/view/other/c-views/data-handle/task-manage/task-watch/TaskWatchHome.vue";

import {useClickRouterToHome} from "@/unit/use-method/usePagination";
import TaskWatchDetail from "@/view/other/c-views/data-handle/task-manage/task-watch/TaskWatchDetail.vue";

export default {
  name: "TaskWatch",
  components: {TaskWatchDetail,  TaskWatchHome},
  setup() {
    const {currentOpObj,operationType,changeOperation} =  useClickRouterToHome()
    return {
      currentOpObj,operationType,changeOperation
    }
  }
}
</script>

<style scoped lang="scss">

</style>
