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

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

export default {
  name: "SateTask",
  components: {SafeTaskDetail, SafeTaskHome},
  setup() {
    const {changeOperation,currentOpObj,operationType} = useClickRouterToHome()
    return {
      changeOperation,currentOpObj,operationType
    }
  }
}
</script>

<style scoped lang="scss">

</style>
