jiangchengfeiyi-Web/src/App.vue

32 lines
480 B
Vue
Raw Normal View History

2024-10-23 09:55:22 +00:00
<template>
2024-11-05 12:19:45 +00:00
<RouterView v-if="isRouterActive"></RouterView>
2024-10-23 09:55:22 +00:00
</template>
<script setup lang="ts">
2024-11-05 12:19:45 +00:00
// 引入组件刷新功能
import { provide , nextTick , ref } from 'vue'
const isRouterActive = ref(true)
provide('reload', () => {
isRouterActive.value = false
nextTick(() => {
isRouterActive.value = true
})
})
2024-10-23 09:55:22 +00:00
</script>
<style scoped>
2024-10-23 11:47:37 +00:00
html{
padding:0;
margin: 0;
}
body{
padding: 0;
margin: 0;
overflow: hidden;
width: 100%;
height: 100%;
}
2024-10-23 09:55:22 +00:00
</style>