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

<script>
import {useClickRouterToHome} from "@/unit/use-method/usePagination";
import LabelTaskHome from "@/view/other/c-views/data-handle/data-label/label-task/LabelTaskHome.vue";
import LabelTaskDetail from "@/view/other/c-views/data-handle/data-label/label-task/LabelTaskDetail.vue";

export default {
  name: "LabelTask",
  components: {LabelTaskDetail, LabelTaskHome},
  setup() {
    const {changeOperation,operationType,currentOpObj} = useClickRouterToHome()
    return {
      changeOperation,operationType,currentOpObj
    }
  }
}
</script>

<style scoped lang="scss">

</style>
