From bff8c0f86bf6310fab54b10492b292b40f87db98 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 9 Jun 2025 15:56:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B3=A8=E9=94=80=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=EF=BC=8C=E5=A2=9E=E5=8A=A010=E7=A7=92=E5=BB=B6?= =?UTF-8?q?=E8=BF=9F=E5=90=8E=E5=86=8D=E6=89=A7=E8=A1=8C=E6=B3=A8=E9=94=80?= =?UTF-8?q?=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/components/UserProfile.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/layouts/components/UserProfile.vue b/src/layouts/components/UserProfile.vue index 774eb314..44742065 100644 --- a/src/layouts/components/UserProfile.vue +++ b/src/layouts/components/UserProfile.vue @@ -73,8 +73,10 @@ async function restart() { } catch (error) { console.error(error) } - // 注销 - logout() + // 等待10秒后注销 + setTimeout(() => { + logout() + }, 10000) } // 显示重启确认对话框