<template>
  <div>
    <List v-show="activeName=='List'" ref="list" />
    <Detail v-if="activeName=='Detail'"/>
  </div>
</template>

<script>
import List from './components/list'
import Detail from './components/detail'
export default {
  components: {
    List: List,
    Detail: Detail
  },
  data() {
    return {
      activeName: 'List',
      BLINDBOARD_ID: ''
    }
  },
  watch: {
    activeName(val) {
      if (val == 'List') {
        this.$refs.list.getList()
      }
    }
  }
}
</script>

<style scoped>
</style>
