forked from drone/command-center-dashboard

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