<script>
import add from "./add.vue";
import list from "./list.vue";

export default {
  name: "AppImmunityManage",
  label: "免疫登记",
  props: {
    instance: Function,
    dict: Object,
    permissions: Function
  },
  computed: {
    currentPage() {
      let {hash} = this.$route
      return hash == "#add" ? add : list
    }
  },
  data() {
    return {}
  }
}
</script>

<template>
  <section class="AppImmunityManage">
    <component :is="currentPage" v-bind="$props"/>
  </section>
</template>

<style scoped lang="scss">
.AppImmunityManage {
  height: 100%;
}
</style>
