<template>
 <keep-alive include="DataDictionaryHome">
   <data-dictionary-home @changeOperation="changeOperation" v-if="!operationType"/>
   <data-dictionary-edit :current-op-obj="currentOpObj" @changeOperation="changeOperation" v-else/>
 </keep-alive>
</template>

<script>


import DataDictionaryHome from "@/view/other/c-views/data-handle/zsk/data-dictionary/DataDictionaryHome.vue";
import {useClickRouterToHome} from "@/unit/use-method/usePagination";
import DataDictionaryEdit from "@/view/other/c-views/data-handle/zsk/data-dictionary/DataDictionaryEdit.vue";

export default {
  name: "DataDictionary",
  components: {DataDictionaryEdit, DataDictionaryHome},
  setup() {
    const {changeOperation,operationType,currentOpObj} = useClickRouterToHome()
    return {
      changeOperation,operationType,currentOpObj
    }
  }
}
</script>

<style scoped lang="scss">

</style>
