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) } // 显示重启确认对话框