forked from drone/command-center-dashboard

chenyao
2025-03-28 55dc742fb4ee17be13ce57bc78cf3eee9ee90f9f
src/views/Home/Home.vue
@@ -1,27 +1,22 @@
<script setup></script>
<template>
  <div class="left">10</div>
  <div class="right">20</div>
    <HomeLeft></HomeLeft>
    <!-- <div>中间搜索</div> -->
    <HomeRight></HomeRight>
</template>
<style scoped lang="scss">
div {
  font-size: 20px;
}
<script setup>
import HomeRight from './components/HomeRight/HomeRight.vue';
import HomeLeft from '@/views/Home/components/HomeLeft/HomeLeft.vue';
import { getAggregation } from '@/views/Home/aggregation';
.left {
  left: 0;
  position: absolute;
  width: 300px;
  height: 100%;
  background: #2b373d;
}
.right{
  right: 0;
  position: absolute;
  width: 300px;
  height: 100%;
  background: #2b373d;
}
onMounted(() => {
  nextTick(() => {
    getAggregation()
  })
})
</script>
<style scoped lang="scss">
</style>