index.vue 735 Bytes
<script lang="ts" setup>
import NavBar from '@/components/NavBar/index.vue';
import Menu from '@/components/Menu/index.vue';
</script>

<template>
  <div class="layout">
    <a-layout>
      <a-layout-header><NavBar /></a-layout-header>
      <a-layout>
        <a-layout-sider>
          <Menu />
        </a-layout-sider>
        <a-layout-content class="content">
          <router-view></router-view>
        </a-layout-content>
      </a-layout>
    </a-layout>
  </div>
</template>

<style lang="scss" scoped>
.content {
  box-sizing: border-box;
  width: 100%;
  height: calc(100vh - 48px);
  background-color: #f7f8f9;
  box-sizing: border-box;
  padding: 16px 20px;
  overflow-y: auto
}
</style>