<!--
 * @Author: your name
 * @Date: 2021-01-07 09:49:29
 * @LastEditTime: 2021-11-01 14:08:55
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue3-element-admin\src\App.vue
-->
<template>
  <section class="app-main">
    <router-view v-slot="{ Component, route }" :key="key">
      <component :is="Component" :key="route.fullPath" />
    </router-view>
  </section>
</template>

<script setup>
import { ref, computed } from "vue";
import { useRoute } from "vue-router";

const route = useRoute();
const key = computed(() => {
  return route.path + Math.random();
});
</script>
<style lang="scss" scoped></style>
