This commit is contained in:
jxxghp
2025-07-07 11:19:45 +08:00
parent 7a37a18f23
commit b15672d593
2 changed files with 10 additions and 39 deletions
+3 -30
View File
@@ -36,8 +36,6 @@ const backgroundImages = ref<string[]>([])
const activeImageIndex = ref(0)
const isTransparentTheme = computed(() => globalTheme.name.value === 'transparent')
// ApexCharts 全局配置
declare global {
interface Window {
@@ -130,8 +128,8 @@ function startBackgroundRotation() {
10000, // 每10秒切换一次
{
runInBackground: false, // 后台时不运行
skipInitialRun: true // 不需要立即执行
}
skipInitialRun: true, // 不需要立即执行
},
)
}
}
@@ -170,7 +168,7 @@ async function removeLoadingWithStateCheck() {
globalLoadingStateManager.setLoadingState('background-images', false)
resolve(void 0)
}, 50)
})
}),
])
// 等待所有加载完成
@@ -316,29 +314,4 @@ onUnmounted(() => {
inset-block-start: 0;
inset-inline-start: 0;
}
/* 优化加载完成动画 */
.loading-complete {
animation: fadeOutScale 0.8s ease-out forwards;
}
@keyframes fadeOutScale {
0% {
opacity: 1;
transform: scale(1);
filter: blur(0px);
}
70% {
opacity: 0.3;
transform: scale(1.05);
filter: blur(2px);
}
100% {
opacity: 0;
transform: scale(1.1);
filter: blur(5px);
}
}
</style>
-2
View File
@@ -123,8 +123,6 @@ app
if (pwaStateController) {
// 监听状态恢复事件
window.addEventListener('pwaStateRestored', (event: Event) => {
const customEvent = event as CustomEvent
// 可以在这里添加状态恢复后的处理逻辑
// 例如:通知Vue组件状态已恢复
app.config.globalProperties.$pwaStateRestored = true