<script setup lang="ts">
import Live from '../components/Live.vue'
import History from '../components/History.vue'
const activeRadio = ref('1')
</script>

<template>
  <el-radio-group v-model="activeRadio" style="margin-bottom: 10px">
    <el-radio-button label="1">实时监控</el-radio-button>
    <el-radio-button label="2">历史监控</el-radio-button>
  </el-radio-group>
  <Live v-if="activeRadio === '1'"></Live>
  <History v-else></History>
</template>
