<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script setup name="App">
import { reactive, provide, nextTick } from 'vue';
const state = reactive({
  isRouterAlive: true,
});

const reload = () => {
  state.isRouterAlive = false;
  nextTick(() => {
    state.isRouterAlive = true;
  });
};

provide('reload', reload);
</script>
<style lang="scss">
@import './styles/style.scss';
</style>
