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

<script>
import InterfaceManageHome
  from "@/view/other/c-views/system-manage/interface-manage/interface-manage/InterfaceManageHome.vue";
import InterfaceManageDetail
  from "@/view/other/c-views/system-manage/interface-manage/interface-manage/InterfaceManageDetail.vue";
import {useClickRouterToHome} from "@/unit/use-method/usePagination";

export default {
  name: "InterfaceManage",
  components: {InterfaceManageDetail, InterfaceManageHome},
  setup(){
    const {currentOpObj,changeOperation,operationType} = useClickRouterToHome()
    return {
      currentOpObj,changeOperation,operationType
    }
  }
}
</script>

<style scoped lang="scss">

</style>
