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-13 10:30:03 +08:00
|
|
|
import { RouterView } from 'vue-router';
|
|
|
|
|
import { ElLoading } from 'element-plus';
|
|
|
|
|
import { watch } from 'vue';
|
|
|
|
|
import { useViewerStore } from './stores/useViewerStore';
|
2026-04-12 22:07:00 +08:00
|
|
|
|
2026-04-13 10:30:03 +08:00
|
|
|
const loadingOption = {
|
|
|
|
|
fullscreen: true,
|
|
|
|
|
text: '正在加载配置相关资源中...',
|
|
|
|
|
};
|
2026-04-12 22:07:00 +08:00
|
|
|
|
2026-04-13 10:30:03 +08:00
|
|
|
let loadingInstanve = ElLoading.service(loadingOption);
|
2026-04-12 22:07:00 +08:00
|
|
|
|
2026-04-13 10:30:03 +08:00
|
|
|
watch(
|
|
|
|
|
() => useViewerStore().getViewerLoadingCompleted(),
|
|
|
|
|
(val) => {
|
|
|
|
|
if (val) {
|
|
|
|
|
loadingInstanve.close();
|
|
|
|
|
} else {
|
|
|
|
|
loadingInstanve = ElLoading.service(loadingOption);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
);
|
2026-04-07 20:01:06 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
2026-04-13 10:30:03 +08:00
|
|
|
* {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
font-family: '微软雅黑';
|
|
|
|
|
}
|
2026-04-07 20:01:06 +08:00
|
|
|
</style>
|