<template>
 <keep-alive include="DataTaskHome">
   <data-task-home @changeOperation="changeOperation" v-if="!operationType"/>
   <data-task-set :current-obj="currentOpObj" :operation-type="operationType" @changeOperation="changeOperation" v-else/>
 </keep-alive>
</template>

<script>

import {useClickRouterToHome} from "@/unit/use-method/usePagination";
import DataTaskHome from "@/view/other/c-views/data-handle/data-clear/data-task/DataTaskHome.vue";
import DataTaskSet from "@/view/other/c-views/data-handle/data-clear/data-task/DataTaskSet.vue";

export default {
  name: "DataClear",
  components: {DataTaskSet, DataTaskHome},
  setup() {
    const {currentOpObj,operationType,changeOperation} = useClickRouterToHome()
    return {
      currentOpObj,operationType,changeOperation
    }
  }
}
</script>

<style scoped lang="scss">

</style>
