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

</template>

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

export default {
  name: "ModuleManage",
  components: {ModuleManageHome, ModuleManageDetail},
  setup(props,{emit}) {
    const {changeOperation,currentOpObj,operationType} = useClickRouterToHome()
    return {
      changeOperation,currentOpObj,operationType
    }
  }
}
</script>

<style scoped lang="scss">

</style>
