he wei
2025-03-17 280792acd3dae2f6f04e08e51dcad91e8ea5562c
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
<script setup>
import { RouterView } from "vue-router";
</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>