diff --git a/index.html b/index.html
index 34c80460..d769d3eb 100644
--- a/index.html
+++ b/index.html
@@ -1,5 +1,6 @@
-
+
@@ -156,4 +157,4 @@
-
+
\ No newline at end of file
diff --git a/public/loader.css b/public/loader.css
index 49b05358..5f79652e 100644
--- a/public/loader.css
+++ b/public/loader.css
@@ -1,15 +1,5 @@
-body {
- margin: 0;
-}
-
-html {
- overflow: hidden auto;
- background: var(--initial-loader-bg, #fff);
- min-block-size: calc(100% + env(safe-area-inset-top) + env(safe-area-inset-bottom));
-}
-
#loading-bg {
- position: absolute;
+ position: fixed;
z-index: 9999;
display: block;
background: var(--initial-loader-bg, #fff);
@@ -82,4 +72,4 @@ html {
opacity: 1;
transform: rotate(1turn);
}
-}
+}
\ No newline at end of file
diff --git a/src/App.vue b/src/App.vue
index 17a0d260..fa7a7197 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -9,6 +9,9 @@ let themeValue = localStorage.getItem('theme') || 'light'
const autoTheme = checkPrefersColorSchemeIsDark() ? 'dark' : 'light'
globalTheme.name.value = themeValue === 'auto' ? autoTheme : themeValue
+// 显示状态
+const show = ref(false)
+
// ApexCharts 全局配置
declare global {
interface Window {
@@ -44,6 +47,7 @@ onMounted(() => {
nextTick(() => {
setTimeout(() => {
removeEl('#loading-bg')
+ show.value = true
}, 1500)
})
})
@@ -51,7 +55,7 @@ onMounted(() => {
-
+