From d2a02a830c4c41755dee1acd4b87ddd62cdaa3c9 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 6 Sep 2023 15:30:10 +0800 Subject: [PATCH] fix restart ui --- src/layouts/components/UserProfile.vue | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/layouts/components/UserProfile.vue b/src/layouts/components/UserProfile.vue index b2901bf5..f505d782 100644 --- a/src/layouts/components/UserProfile.vue +++ b/src/layouts/components/UserProfile.vue @@ -15,6 +15,9 @@ const createConfirm = useConfirm() // 提示框 const $toast = useToast() +// 进度框 +const progressDialog = ref(false) + // 执行注销操作 function logout() { // 清除登录状态信息 @@ -50,6 +53,8 @@ async function restart() { catch (error) { console.error(error) } + // 显示等待框 + progressDialog.value = true // 注销 logout() } @@ -162,4 +167,23 @@ const avatar = store.state.auth.avatar + + + + + 正在重启 ... + + + +