From 200e57931ab8e0f45dacbc3294c51d35dbe6c6d6 Mon Sep 17 00:00:00 2001 From: tao Date: Tue, 23 Dec 2025 13:31:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=BB=E9=A1=B5=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index ec662b3..d940ea6 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,13 +1,9 @@ @@ -113,20 +109,17 @@ const handleLogout = () => { okText: '确定', cancelText: '取消', onOk: () => { - message.success('已退出'); + authStore.logout(); }, - onCancel: () => { - message.error('操作失败'); - } }); }; -const handleJumpTo = (path) => { +const handleJumpTo = (name) => { if (!loggedIn.value) { message.warning("尚未登录,请先登录"); return; } - router.push({ path }); + router.push({ name }); }; @@ -136,6 +129,7 @@ const handleJumpTo = (path) => { height: 100vh; display: flex; flex-direction: column; + overflow: hidden; } .menu-grid {