<template>
 <keep-alive include="ProcssMbHome">
   <procss-mb-home @changeOperation="changeOperation" v-if="!operationType"/>

   <process-mb-detail :operation-type="operationType" :current-op-obj="currentOpObj" @changeOperation="changeOperation" v-else/>
 </keep-alive>
</template>

<script>
import {useClickRouterToHome} from "@/unit/use-method/usePagination";
import ProcssMbHome from "@/view/other/c-views/data-handle/zsk/process-mb/ProcssMbHome.vue";
import ProcessMbDetail from "@/view/other/c-views/data-handle/zsk/process-mb/ProcessMbDetail.vue";

export default {
  name: "ProcessMb",
  components: {ProcessMbDetail, ProcssMbHome},
  setup() {
    const  {operationType,currentOpObj,changeOperation} = useClickRouterToHome()
    return {
      operationType,
      changeOperation,
      currentOpObj
    }
  }
}
</script>

<style scoped lang="scss">

</style>
