mirror of
https://github.com/schroinerxy/cloud-mail.git
synced 2026-06-21 19:35:50 +08:00
设置登录背景加载超时时间
This commit is contained in:
@@ -135,11 +135,15 @@ function loadBackground(next) {
|
||||
next()
|
||||
};
|
||||
|
||||
setTimeout(() => {
|
||||
console.warn("背景加载超时,已放行");
|
||||
next()
|
||||
}, 3000)
|
||||
|
||||
} else {
|
||||
next()
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
router.afterEach((to) => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<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 class="x1 cloud"></div>
|
||||
<div class="x2 cloud"></div>
|
||||
|
||||
Reference in New Issue
Block a user