2025-01-20 08:09:54 +00:00
|
|
|
<template>
|
2025-01-25 02:44:29 +00:00
|
|
|
<div id="app">
|
|
|
|
<router-view />
|
|
|
|
</div>
|
2025-01-20 08:09:54 +00:00
|
|
|
</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>
|