diff --git a/mail-vue/src/router/index.js b/mail-vue/src/router/index.js index 34affe8..4d75905 100644 --- a/mail-vue/src/router/index.js +++ b/mail-vue/src/router/index.js @@ -135,11 +135,15 @@ function loadBackground(next) { next() }; + setTimeout(() => { + console.warn("背景加载超时,已放行"); + next() + }, 3000) + } else { next() } - } router.afterEach((to) => { diff --git a/mail-vue/src/views/login/index.vue b/mail-vue/src/views/login/index.vue index dc7d953..b7fc4dd 100644 --- a/mail-vue/src/views/login/index.vue +++ b/mail-vue/src/views/login/index.vue @@ -1,5 +1,5 @@