yangfeng
2023-07-04 3d4f00f97ed2c16bd91e5d3eed4df6c641b3952b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<template>
  <div class="app-main">
    <AppHeader :headerTitle="$route.meta.title" />
    <transition>
      <router-view :key="key" />
    </transition>
  </div>
</template>
 
<script>
import AppHeader from "./appHeader/index.vue"
export default {
  name: "AppMain",
  components: { AppHeader },
  props: {},
  computed: {
    key() {
      return this.$route.fullPath
    }
  }
}
</script>
 
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
.app-main {
  margin-left: 10px;
  box-sizing: border-box;
  display: flex;
  flex: 1;
  flex-direction: column;
  // height: 100%;
  width: 100%;
}
</style>