From f836d175f0c52430e0b47d80c9abdc4802155a55 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 26 Jan 2025 08:48:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(App.vue):=20=E4=BC=98=E5=8C=96=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=8A=A0=E8=BD=BD=E6=97=B6=E7=9A=84=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E9=80=BB=E8=BE=91=EF=BC=8C=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=BB=B6=E8=BF=9F=E4=BB=A5=E7=A1=AE=E4=BF=9D=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/App.vue b/src/App.vue index 383cb694..8e6cce2d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -42,15 +42,15 @@ if (window.Apex) { } } -// 页面加载时,加载当前用户数据 -onBeforeMount(async () => { - setTheme() -}) - onMounted(() => { + setTheme() ensureRenderComplete(() => { - nextTick(() => removeEl('#loading-bg')) - }); + nextTick(() => { + setTimeout(() => { + removeEl('#loading-bg') + }, 1000) + }) + }) })