<script>
import authAdd from "./authAdd.vue";
import authList from "./authList.vue";

export default {
  name: "AppAuthManage",
  label: "认证审核",
  props: {
    instance: Function,
    dict: Object,
    permissions: Function
  },
  computed: {
    currentPage() {
      let {hash} = this.$route
      return hash == "#add" ? authAdd : authList
    }
  },
}
</script>

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

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