2026-04-07 20:01:06 +08:00
|
|
|
<template>
|
|
|
|
|
<RouterView></RouterView>
|
|
|
|
|
</template>
|
|
|
|
|
|
2026-04-11 10:09:40 +08:00
|
|
|
<script setup lang="ts">
|
2026-04-07 20:01:06 +08:00
|
|
|
import { RouterView } from 'vue-router'
|
2026-04-11 10:09:40 +08:00
|
|
|
import { ElLoading } from 'element-plus'
|
|
|
|
|
import { watch } from 'vue';
|
|
|
|
|
import { useViewerStore } from './stores/useViewerStore';
|
|
|
|
|
const loadingInstanve = ElLoading.service({
|
|
|
|
|
fullscreen: true,
|
|
|
|
|
text: '正在加载配置相关资源中...'
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
watch(() => useViewerStore().getViewerLoadingCompleted(), (val) => {
|
|
|
|
|
if (val == true) {
|
|
|
|
|
loadingInstanve.close()
|
|
|
|
|
}
|
|
|
|
|
})
|
2026-04-07 20:01:06 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
* {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
font-family: '微软雅黑';
|
|
|
|
|
}
|
|
|
|
|
</style>
|