Files
xian_vue_new/src/App.vue
T

37 lines
742 B
Vue
Raw Normal View History

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