15 lines
303 B
Vue
15 lines
303 B
Vue
<template>
|
|
<router-view :key="routerKey"></router-view>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { useRoute } from "vue-router";
|
|
import { computed } from "vue";
|
|
const route = useRoute();
|
|
const routerKey = computed(() => {
|
|
return route.path + Math.random();
|
|
});
|
|
</script>
|
|
|
|
<style scoped></style>
|