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

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

export default {
  name: "InterfaceOrder",
  components: {InterfaceOrderDetail, InterFaceOrderHome},
  setup() {
    const {changeOperation,currentOpObj,operationType} = useClickRouterToHome()
    return {
      changeOperation,currentOpObj,operationType
    }
  }
}
</script>

<style scoped lang="scss">

</style>
