<script setup lang="ts">
import HelloWorld from './components/HelloWorld.vue'
import TheWelcome from './components/Welcome.vue'
import MyHead from "@/components/MyHead.vue";
import MyFooter from "@/components/MyFooter.vue";
</script>

<template>
  <div class="login">
    <el-container class="common-layout">
      <el-header class="header">
        <MyHead />
      </el-header>
      <el-main class="main-content">
          <RouterView />
      </el-main>
      <el-footer class="footer">
        <MyFooter/>
      </el-footer>
    </el-container>
  </div>
</template>

<style scoped>
#app {
  margin: 0px 0px;
}

*{
  padding:0px
}

.login {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-size: cover;
}

template {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.common-layout {
  min-width: 100vw; /* 设置最大宽度 */
  min-height: 100vh;
}

.main-content {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

</style>
