设置登录背景加载超时时间

This commit is contained in:
eoao
2025-11-09 08:08:00 +08:00
parent 56b42d29b3
commit 025dc1fbdb
2 changed files with 6 additions and 2 deletions

View File

@@ -135,11 +135,15 @@ function loadBackground(next) {
next() next()
}; };
setTimeout(() => {
console.warn("背景加载超时,已放行");
next()
}, 3000)
} else { } else {
next() next()
} }
} }
router.afterEach((to) => { router.afterEach((to) => {

View File

@@ -1,5 +1,5 @@
<template> <template>
<div id="login-box" v-loading="oauthLoading" element-loading-text="登录中..."> <div id="login-box" :style=" background ? 'background: var(--el-bg-color)' : ''" v-loading="oauthLoading" element-loading-text="登录中...">
<div id="background-wrap" v-if="!settingStore.settings.background"> <div id="background-wrap" v-if="!settingStore.settings.background">
<div class="x1 cloud"></div> <div class="x1 cloud"></div>
<div class="x2 cloud"></div> <div class="x2 cloud"></div>