whychdw
2024-12-02 ec054b1f37e4863074069fe686d82e20c435f9c1
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
<script>
export default {
  name: "AppMain"
}
</script>
 
<template>
  <div class="app-main-wrapper">
    <div class="app-main-content">
      <router-view v-slot="{ Component, route }">
        <component :is="Component" :key="route.fullPath" />
      </router-view>
    </div>
  </div>
</template>
 
<style scoped lang="scss">
.app-main-wrapper {
  position: relative;
  height: 100%;
  .app-main-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }
}
</style>