<template>
    <keep-alive include="TopicList">
        <component :is="selectComponent"></component>
    </keep-alive>
</template>

<script>
import TopicList from './partytopic-list'
import TopicDetail from './partytopic-detail'
export default {
  data () {
    return {
      selectComponent: TopicList
    }
  },
  components: {
    TopicList,
    TopicDetail
  },
  methods: {
    init () {
      this.selectComponent = TopicList
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
