2024-10-23 09:55:22 +00:00
|
|
|
<template>
|
2024-12-08 02:40:37 +00:00
|
|
|
<el-config-provider :locale="zhCn">
|
|
|
|
<RouterView v-if="isRouterActive"></RouterView>
|
|
|
|
</el-config-provider>
|
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'
|
2024-12-08 02:40:37 +00:00
|
|
|
import { ElConfigProvider } from 'element-plus'
|
|
|
|
import zhCn from 'element-plus/es/locale/lang/zh-cn' //引入ElemenetPlus中文
|
2024-11-05 12:19:45 +00:00
|
|
|
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>
|